annotate runtime/print/cidfont.ps @ 40:01573c245f15

fix for remote editor
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Sat, 18 Dec 2010 18:47:04 +0900
parents 76efa0be13f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 %!PS-Adobe-3.0 Resource-ProcSet
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 %%Title: VIM-CIDFont
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 %%Version: 1.0 0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 %%EndComments
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5 % Editing of this file is NOT RECOMMENDED. You run a very good risk of causing
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 % all PostScript printing from VIM failing if you do. PostScript is not called
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 % a write-only language for nothing!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 /CP currentpacking d T setpacking
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 /SB 256 string d
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 /CIDN? systemdict/composefont known d /GS? systemdict/.makeoperator known d
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 CIDN?{
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 GS?{/vim_findresource{2 copy resourcestatus not{1 index SB cvs runlibfile}{
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 pop pop}ifelse findresource}bd/vim_composefont{0 get/CIDFont vim_findresource
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 exch/CMap vim_findresource exch[exch]composefont pop}bd}{/vim_findresource
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 /findresource ld/vim_composefont{composefont pop}bd}ifelse
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 }{
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 /vim_fontname{0 get SB cvs length dup SB exch(-)putinterval 1 add dup SB exch
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 dup 256 exch sub getinterval 3 -1 roll exch cvs length add SB exch 0 exch
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 getinterval cvn}bd/vim_composefont{vim_fontname findfont d}bd
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 } ifelse
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 /cfs{exch scalefont d}bd
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 /sffs{findfont 3 1 roll 1 index mul exch 2 index/FontMatrix get matrix copy
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 scale makefont d}bd
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 CP setpacking
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 % vim:ff=unix:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 %%EOF