/
usr
/
share
/
ghostscript
/
8.70
/
lib
/
/usr/share/ghostscript/8.70/lib
mkdir
upload
Name
Size
Mode
Actions
acctest.ps
4324
0644
edit
dl
rm
addxchar.ps
9848
0644
edit
dl
rm
align.ps
2313
0644
edit
dl
rm
bdftops.ps
23403
0644
edit
dl
rm
bj8.rpd
639
0644
edit
dl
rm
bj8gc12f.upp
1528
0644
edit
dl
rm
bj8hg12f.upp
1527
0644
edit
dl
rm
bj8oh06n.upp
1513
0644
edit
dl
rm
bj8pa06n.upp
1521
0644
edit
dl
rm
bj8pp12f.upp
1538
0644
edit
dl
rm
bj8ts06n.upp
1526
0644
edit
dl
rm
bjc610a0.upp
1523
0644
edit
dl
rm
bjc610a1.upp
1512
0644
edit
dl
rm
bjc610a2.upp
1513
0644
edit
dl
rm
bjc610a3.upp
1518
0644
edit
dl
rm
bjc610a4.upp
1526
0644
edit
dl
rm
bjc610a5.upp
1513
0644
edit
dl
rm
bjc610a6.upp
1513
0644
edit
dl
rm
bjc610a7.upp
1516
0644
edit
dl
rm
bjc610a8.upp
1522
0644
edit
dl
rm
bjc610b1.upp
1512
0644
edit
dl
rm
bjc610b2.upp
1513
0644
edit
dl
rm
bjc610b3.upp
1518
0644
edit
dl
rm
bjc610b4.upp
1526
0644
edit
dl
rm
bjc610b6.upp
1513
0644
edit
dl
rm
bjc610b7.upp
1517
0644
edit
dl
rm
bjc610b8.upp
1522
0644
edit
dl
rm
bjc6000a1.upp
1660
0644
edit
dl
rm
bjc6000b1.upp
1660
0644
edit
dl
rm
caption.ps
1721
0644
edit
dl
rm
cbjc600.ppd
11040
0644
edit
dl
rm
cbjc800.ppd
11383
0644
edit
dl
rm
cdj550.upp
1686
0644
edit
dl
rm
cdj690.upp
1995
0644
edit
dl
rm
cdj690ec.upp
2056
0644
edit
dl
rm
cid2code.ps
4475
0644
edit
dl
rm
decrypt.ps
350
0644
edit
dl
rm
dmp_init.ps
7246
0644
edit
dl
rm
dmp_site.ps
459
0644
edit
dl
rm
dnj750c.upp
2804
0644
edit
dl
rm
dnj750m.upp
1971
0644
edit
dl
rm
docie.ps
7373
0644
edit
dl
rm
dumphint.ps
20044
0644
edit
dl
rm
escp_24.src
350
0644
edit
dl
rm
font2c.ps
19591
0644
edit
dl
rm
font2pcl.ps
17568
0644
edit
dl
rm
ghostpdf.ppd
25643
0644
edit
dl
rm
gslp.ps
19643
0644
edit
dl
rm
gsnup.ps
2725
0644
edit
dl
rm
gs_ce_e.ps
2364
0644
edit
dl
rm
gs_cmdl.ps
4844
0644
edit
dl
rm
gs_fform.ps
3162
0644
edit
dl
rm
gs_il2_e.ps
2777
0644
edit
dl
rm
gs_kanji.ps
3942
0644
edit
dl
rm
gs_ksb_e.ps
3291
0644
edit
dl
rm
gs_l.xbm
1945
0644
edit
dl
rm
gs_l.xpm
2751
0644
edit
dl
rm
gs_lgo_e.ps
2886
0644
edit
dl
rm
gs_lgx_e.ps
1912
0644
edit
dl
rm
gs_l_m.xbm
1955
0644
edit
dl
rm
gs_m.xbm
945
0644
edit
dl
rm
gs_m.xpm
1437
0644
edit
dl
rm
gs_m_m.xbm
955
0644
edit
dl
rm
gs_pfile.ps
4349
0644
edit
dl
rm
gs_rdlin.ps
862
0644
edit
dl
rm
gs_s.xbm
594
0644
edit
dl
rm
gs_s.xpm
957
0644
edit
dl
rm
gs_s_m.xbm
604
0644
edit
dl
rm
gs_t.xbm
345
0644
edit
dl
rm
gs_t.xpm
605
0644
edit
dl
rm
gs_t_m.xbm
355
0644
edit
dl
rm
gs_wl1_e.ps
2530
0644
edit
dl
rm
gs_wl2_e.ps
2528
0644
edit
dl
rm
gs_wl5_e.ps
2546
0644
edit
dl
rm
ht_ccsto.ps
228194
0644
edit
dl
rm
image-qa.ps
73323
0644
edit
dl
rm
impath.ps
5538
0644
edit
dl
rm
jispaper.ps
930
0644
edit
dl
rm
landscap.ps
1525
0644
edit
dl
rm
level1.ps
110
0644
edit
dl
rm
lines.ps
3868
0644
edit
dl
rm
markhint.ps
3473
0644
edit
dl
rm
markpath.ps
1890
0644
edit
dl
rm
mkcidfm.ps
7305
0644
edit
dl
rm
necp2x.upp
1041
0644
edit
dl
rm
necp2x6.upp
1065
0644
edit
dl
rm
packfile.ps
10358
0644
edit
dl
rm
pcharstr.ps
3584
0644
edit
dl
rm
pdf2dsc.ps
8377
0644
edit
dl
rm
PDFA_def.ps
1170
0644
edit
dl
rm
pdfopt.ps
36516
0644
edit
dl
rm
pdfwrite.ps
11676
0644
edit
dl
rm
PDFX_def.ps
1868
0644
edit
dl
rm
pf2afm.ps
15351
0644
edit
dl
rm
pfbtopfa.ps
1141
0644
edit
dl
rm
PM760p.upp
1160
0644
edit
dl
rm
PM760pl.upp
1124
0644
edit
dl
rm
PM820p.upp
1142
0644
edit
dl
rm
PM820pl.upp
1117
0644
edit
dl
rm
ppath.ps
1974
0644
edit
dl
rm
pphs
391
0644
edit
dl
rm
pphs.ps
6922
0644
edit
dl
rm
prfont.ps
6487
0644
edit
dl
rm
printafm.ps
3775
0644
edit
dl
rm
ps2ai.ps
22485
0644
edit
dl
rm
ps2ascii.ps
44618
0644
edit
dl
rm
ps2epsi.ps
8187
0644
edit
dl
rm
quit.ps
5
0644
edit
dl
rm
ras1.upp
211
0644
edit
dl
rm
ras3.upp
210
0644
edit
dl
rm
ras4.upp
216
0644
edit
dl
rm
ras8m.upp
205
0644
edit
dl
rm
ras24.upp
215
0644
edit
dl
rm
ras32.upp
192
0644
edit
dl
rm
rollconv.ps
11765
0644
edit
dl
rm
s400a1.upp
1454
0644
edit
dl
rm
s400b1.upp
1603
0644
edit
dl
rm
sharp.upp
1936
0644
edit
dl
rm
showchar.ps
2932
0644
edit
dl
rm
showpage.ps
9
0644
edit
dl
rm
sipixa6.upp
529
0644
edit
dl
rm
st640ih.upp
2277
0644
edit
dl
rm
st640ihg.upp
1504
0644
edit
dl
rm
st640p.upp
1910
0644
edit
dl
rm
st640pg.upp
1137
0644
edit
dl
rm
st640pl.upp
1874
0644
edit
dl
rm
st640plg.upp
1101
0644
edit
dl
rm
stc.upp
1919
0644
edit
dl
rm
stc2.upp
1900
0644
edit
dl
rm
stc2s_h.upp
2268
0644
edit
dl
rm
stc2_h.upp
1875
0644
edit
dl
rm
stc200_h.upp
1844
0644
edit
dl
rm
stc300.upp
2132
0644
edit
dl
rm
stc300bl.upp
1337
0644
edit
dl
rm
stc300bm.upp
1426
0644
edit
dl
rm
stc500p.upp
1899
0644
edit
dl
rm
stc500ph.upp
1899
0644
edit
dl
rm
stc600ih.upp
2277
0644
edit
dl
rm
stc600p.upp
1147
0644
edit
dl
rm
stc600pl.upp
1111
0644
edit
dl
rm
stc640p.upp
1091
0644
edit
dl
rm
Stc670p.upp
1159
0644
edit
dl
rm
Stc670pl.upp
1124
0644
edit
dl
rm
Stc680p.upp
1140
0644
edit
dl
rm
Stc680pl.upp
1115
0644
edit
dl
rm
stc740ih.upp
2123
0644
edit
dl
rm
Stc740p.upp
1039
0644
edit
dl
rm
Stc740pl.upp
1115
0644
edit
dl
rm
Stc760p.upp
1141
0644
edit
dl
rm
Stc760pl.upp
1115
0644
edit
dl
rm
Stc777p.upp
1140
0644
edit
dl
rm
Stc777pl.upp
1115
0644
edit
dl
rm
stc800ih.upp
2154
0644
edit
dl
rm
stc800p.upp
1111
0644
edit
dl
rm
stc800pl.upp
1093
0644
edit
dl
rm
stc1520h.upp
2150
0644
edit
dl
rm
stcany.upp
669
0644
edit
dl
rm
stcany_h.upp
677
0644
edit
dl
rm
stcinfo.ps
25733
0644
edit
dl
rm
stcolor.ps
5221
0644
edit
dl
rm
stc_h.upp
1909
0644
edit
dl
rm
stc_l.upp
730
0644
edit
dl
rm
stocht.ps
2646
0644
edit
dl
rm
Stp720p.upp
1158
0644
edit
dl
rm
Stp720pl.upp
1115
0644
edit
dl
rm
Stp870p.upp
1140
0644
edit
dl
rm
Stp870pl.upp
1115
0644
edit
dl
rm
traceimg.ps
1528
0644
edit
dl
rm
traceop.ps
2734
0644
edit
dl
rm
type1enc.ps
2536
0644
edit
dl
rm
type1ops.ps
7576
0644
edit
dl
rm
uninfo.ps
6136
0644
edit
dl
rm
unprot.ps
1904
0644
edit
dl
rm
viewcmyk.ps
2113
0644
edit
dl
rm
viewgif.ps
4573
0644
edit
dl
rm
viewjpeg.ps
4949
0644
edit
dl
rm
viewmiff.ps
3778
0644
edit
dl
rm
viewpbm.ps
5307
0644
edit
dl
rm
viewpcx.ps
4345
0644
edit
dl
rm
viewps2a.ps
1282
0644
edit
dl
rm
wftopfa.ps
8923
0644
edit
dl
rm
winmaps.ps
3743
0644
edit
dl
rm
wrfont.ps
18168
0644
edit
dl
rm
zeroline.ps
2463
0644
edit
dl
rm
Edit:
/usr/share/ghostscript/8.70/lib/wftopfa.ps
(8923B)
% Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved. % % This software is provided AS-IS with no warranty, either express or % implied. % % This software is distributed under license and may not be copied, % modified or distributed except as expressly authorized under the terms % of the license contained in the file LICENSE in this distribution. % % For more information about licensing, please refer to % http://www.ghostscript.com/licensing/. For information on % commercial licensing, go to http://www.artifex.com/licensing/ or % contact Artifex Software, Inc., 101 Lucas Valley Road #110, % San Rafael, CA 94903, U.S.A., +1(415)492-9861. % $Id: wftopfa.ps 6300 2005-12-28 19:56:24Z giles $ % wftopfa.ps % Convert a Wadalab base font to .PFA (or .PFB) format. (gs_ksb_e.ps) runlibfile (wrfont.ps) runlibfile /wftopfa_dict 100 dict def wftopfa_dict begin /KanjiSubEncoding dup .findencoding def % Initialize parameters. /init % - init - { /chars 256 dict def /version (001.001) def /highcode 0 def /StdHW [32] def /StdVW [32] def /UniqueID 20000000 def /FontBase (Wadalab) def /StdEncMode false def /CustomEncMode false def /Binary false def /Encrypt true def } bind def % Read definitions. /rdstring 5000 string def /readdefs % <filename> readdefs - { (r) file { dup rdstring readline not { pop exit } if dup length 15 ge { dup dup length 7 sub 7 getinterval (> CompD) eq { token pop exch token pop exch pop dup 0 get /highcode exch def exch chars 3 1 roll put } { pop } ifelse } { pop } ifelse } loop closefile } bind def % Write out the final font. /writepfa { 4 string highcode 16#1000 add 16 2 index cvrs 0 (.r) putinterval FontBase exch concatstrings /fullname exch def UniqueID 20000000 eq { /UniqueID 4990000 highcode add def } if /encoding CustomEncMode { KanjiSubEncoding } { StdEncMode { StandardEncoding } { ISOLatin1Encoding } ifelse } ifelse def /Font 30 dict def Font begin /FontInfo 20 dict def FontInfo begin % Write the clear text part. /CreationDate (%Calendar%) currentdevparams dup /Weekday get {(Sun )(Mon )(Tue )(Wed )(Thu )(Fri )(Sat )} exch get 1 index /Month get 1 sub {(Jan)(Feb)(Mar)(Apr)(May)(Jun)(Jul)(Aug)(Sep)(Oct)(Nov)(Dec)} exch get concatstrings {{/Day ( )} {/Hour ( )} {/Minute (:)} {/Second (:)} {/Year ( )}} { dup 1 get 3 -1 roll exch concatstrings exch 0 get 2 index exch get dup 10 lt { =string cvs (0) exch concatstrings } { =string cvs } ifelse concatstrings } forall exch pop readonly def /VMusage 100000 def /version version readonly def /Notice (No copyright on this font. Original available from moe.ipl.t.u-tokyo.ac.jp:/Font. Converted by wftopfa.ps (Aladdin Enterprises).) readonly def /FullName fullname readonly def /FamilyName FontBase readonly def /Weight (Regular) readonly def /ItalicAngle 0 def /isFixedPitch true def /UnderlinePosition 0 def /UnderlineThickness 0 def end % FontInfo /FontName fullname cvn def /Encoding encoding def /PaintType 0 def /FontType 1 def /FontMatrix [.001 0 0 .001 0 -0.16] readonly def /UniqueID UniqueID def /FontBBox [0 0 1000 1000] readonly def /Private 20 dict def Private begin /-| {string currentfile exch readstring pop} readonly def /|- {readonly def} readonly def /| {readonly put} readonly def /BlueValues [] readonly def /OtherBlues [] readonly def /MinFeature {16 16} readonly def /StdHW StdHW def /StdVW StdVW def /ForceBold false def /password 5839 def /UniqueID UniqueID def /OtherSubrs [] readonly def /Subrs [ (\020\2771p|\020\024\020=-\223D\\\342R) readonly (\020\2771py\274\366Uz) readonly (\020\2771py\275\304\236i) readonly (\020\2771p\371) readonly (\020\2771p~\266+6\034\3446z) readonly ] readonly def end % Private /CharStrings 256 dict def chars { exch =string cvs dup 0 get highcode eq { 1 get encoding exch get exch CharStrings 3 1 roll put } { pop pop } ifelse } forall end % Font Font /FontName get Font definefont setfont (%stdout) (w) file writefont } bind def % Scan the command line and process files. /options mark /version { 2 copy get /version exch def 1 add } bind /StdHW { 2 copy get cvx exec /StdHW exch def 1 add } bind /StdVW { 2 copy get cvx exec /StdVW exch def 1 add } bind /UniqueId { 2 copy get cvi /UniqueID exch def 1 add } bind /UniqueID 1 index /FontBase { 2 copy get /FontBase exch def 1 add } bind /StdEnc { /StdEncMode true def } bind /CustomEnc { /CustomEncMode true def } bind /Binary { /Binary true def } bind /noEncrypt { /Encrypt false def } bind .dicttomark def /wftopfa % [(arg1) ...] wftopfa - { init dup 0 { dup 2 index length ge { exit } if 2 copy get exch 1 add exch options 1 index .knownget { exch pop exec } { readdefs } ifelse } loop pop pop wrfont_dict /binary_CharStrings Binary put wrfont_dict /eexec_encrypt Encrypt put wrfont_dict /name_all_Encodings CustomEncMode put writepfa } bind def end % wftopfa_dict /wftopfa { mark exch wftopfa_dict begin /saved save def { wftopfa } exec false%stopped { cleartomark true } { cleartomark false } ifelse saved end restore { stop } if } bind def [ shellarguments { ] wftopfa } { pop } ifelse % ---------------- Root font ---------------- % % Define the Encoding for the root font. /wfrootencoding % \x00-\x3F 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 8 0 0 0 0 0 0 0 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 % \x40-\x7F 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 0 0 0 0 0 0 0 0 0 0 0 % \x80-\xFF 128 copy 256 packedarray def % Define the template for the root font dictionary. /wfrootfontdict mark /FontType 0 /FontMatrix [1 0 0 1 0 0] /FMapType 2 /Encoding wfrootencoding .dicttomark def % Define a dummy (placeholder) Type 1 font for the FDepVector. /type1dummyfont % <fontname> type1dummyfont <font> { mark /FontName 3 -1 roll /FontType 1 /FontMatrix [.001 0 0 .001 0 0] /FontBBox [0 0 1000 1000] /Encoding /KanjiSubEncoding findencoding /CharStrings 0 dict /Private mark /BlueValues [] /password 5839 .dicttomark .dicttomark dup /FontName get exch definefont } bind def % Write a root font. Again, wrfont.ps does most of the work. /makerootfont % <rootname> makerootfont <font> { wfrootfontdict dup length 4 add % FontName, FDepVector, PrefEnc, FID dict copy begin cvlit /FontName exch def 4 dict begin /len FontName length def /str len 4 add string def FontName str cvs pop str len (.r) putinterval /FDepVector [ 16#21 1 16#74 { dup wfrootencoding exch get 0 eq { pop } { 16 str len 2 add 2 getinterval cvrs pop str cvn type1dummyfont } ifelse } for end counttomark -1 roll dup counttomark 2 roll ] def FontName currentdict end definefont } bind def /writerootfont % <rootname> writerootfont - { save exch makerootfont setfont (%stdout) (w) file writefont restore } bind def % ---------------- Converting entire fonts ---------------- % % Define the directory where the Wadalab fonts are stored. /wfdir (/home/ghost/kanji/w) def % Convert an entire Wadalab font. /writeentirefont % <fontname> <template*> writeentirefont - { 2 dict begin /templates exch def /fontname exch def [ templates { wfdir (/) concatstrings exch concatstrings { copystring } 8192 string filenameforall } forall wfdir (/wadalab-sym/*.ps) concatstrings { copystring } 8192 string filenameforall ] (%!\n) print { /currentuserparams where { pop currentuserparams /VMReclaim get -2 vmreclaim { vmreclaim } } { { } } ifelse } == (exec\n) print (/KanjiSubEncoding ) print /KanjiSubEncoding findencoding == (readonly def\n) print { (%stderr) (w) file dup 2 index write== flushfile mark exch (CustomEnc) (Binary) (noEncrypt) (FontBase) fontname counttomark -1 roll ] wftopfa } forall fontname cvn writerootfont (exec\n) print end } def % don't bind, so we can print the procedure % Convert the Wadalab JIS 1&2 SaiMincho font. % To invoke this from the command line, % gs -dNODISPLAY -q wftopfa.ps -c writeSaiMincho0 flush quit >wmin0.ps % To make the resulting font loadable on demand, add to the Fontmap file: % /Wadalab-SaiMincho (wmin0.ps) ; /writeSaiMincho0 { (Wadalab-SaiMincho) [ (wadalab-mincho-0-8/*.ps) ] writeentirefont } bind def
Save
cmd:
run