Hackfut Security File Manager
Current Path:
/usr/share/ghostscript/8.70/lib
usr
/
share
/
ghostscript
/
8.70
/
lib
/
📁
..
📄
PDFA_def.ps
(1.14 KB)
📄
PDFX_def.ps
(1.82 KB)
📄
PM760p.upp
(1.13 KB)
📄
PM760pl.upp
(1.1 KB)
📄
PM820p.upp
(1.12 KB)
📄
PM820pl.upp
(1.09 KB)
📄
Stc670p.upp
(1.13 KB)
📄
Stc670pl.upp
(1.1 KB)
📄
Stc680p.upp
(1.11 KB)
📄
Stc680pl.upp
(1.09 KB)
📄
Stc740p.upp
(1.01 KB)
📄
Stc740pl.upp
(1.09 KB)
📄
Stc760p.upp
(1.11 KB)
📄
Stc760pl.upp
(1.09 KB)
📄
Stc777p.upp
(1.11 KB)
📄
Stc777pl.upp
(1.09 KB)
📄
Stp720p.upp
(1.13 KB)
📄
Stp720pl.upp
(1.09 KB)
📄
Stp870p.upp
(1.11 KB)
📄
Stp870pl.upp
(1.09 KB)
📄
acctest.ps
(4.22 KB)
📄
addxchar.ps
(9.62 KB)
📄
align.ps
(2.26 KB)
📄
bdftops.ps
(22.85 KB)
📄
bj8.rpd
(639 B)
📄
bj8gc12f.upp
(1.49 KB)
📄
bj8hg12f.upp
(1.49 KB)
📄
bj8oh06n.upp
(1.48 KB)
📄
bj8pa06n.upp
(1.49 KB)
📄
bj8pp12f.upp
(1.5 KB)
📄
bj8ts06n.upp
(1.49 KB)
📄
bjc6000a1.upp
(1.62 KB)
📄
bjc6000b1.upp
(1.62 KB)
📄
bjc610a0.upp
(1.49 KB)
📄
bjc610a1.upp
(1.48 KB)
📄
bjc610a2.upp
(1.48 KB)
📄
bjc610a3.upp
(1.48 KB)
📄
bjc610a4.upp
(1.49 KB)
📄
bjc610a5.upp
(1.48 KB)
📄
bjc610a6.upp
(1.48 KB)
📄
bjc610a7.upp
(1.48 KB)
📄
bjc610a8.upp
(1.49 KB)
📄
bjc610b1.upp
(1.48 KB)
📄
bjc610b2.upp
(1.48 KB)
📄
bjc610b3.upp
(1.48 KB)
📄
bjc610b4.upp
(1.49 KB)
📄
bjc610b6.upp
(1.48 KB)
📄
bjc610b7.upp
(1.48 KB)
📄
bjc610b8.upp
(1.49 KB)
📄
caption.ps
(1.68 KB)
📄
cbjc600.ppd
(10.78 KB)
📄
cbjc800.ppd
(11.12 KB)
📄
cdj550.upp
(1.65 KB)
📄
cdj690.upp
(1.95 KB)
📄
cdj690ec.upp
(2.01 KB)
📄
cid2code.ps
(4.37 KB)
📄
decrypt.ps
(350 B)
📄
dmp_init.ps
(7.08 KB)
📄
dmp_site.ps
(459 B)
📄
dnj750c.upp
(2.74 KB)
📄
dnj750m.upp
(1.92 KB)
📄
docie.ps
(7.2 KB)
📄
dumphint.ps
(19.57 KB)
📄
escp_24.src
(350 B)
📄
font2c.ps
(19.13 KB)
📄
font2pcl.ps
(17.16 KB)
📄
ghostpdf.ppd
(25.04 KB)
📄
gs_ce_e.ps
(2.31 KB)
📄
gs_cmdl.ps
(4.73 KB)
📄
gs_fform.ps
(3.09 KB)
📄
gs_il2_e.ps
(2.71 KB)
📄
gs_kanji.ps
(3.85 KB)
📄
gs_ksb_e.ps
(3.21 KB)
📄
gs_l.xbm
(1.9 KB)
📄
gs_l.xpm
(2.69 KB)
📄
gs_l_m.xbm
(1.91 KB)
📄
gs_lgo_e.ps
(2.82 KB)
📄
gs_lgx_e.ps
(1.87 KB)
📄
gs_m.xbm
(945 B)
📄
gs_m.xpm
(1.4 KB)
📄
gs_m_m.xbm
(955 B)
📄
gs_pfile.ps
(4.25 KB)
📄
gs_rdlin.ps
(862 B)
📄
gs_s.xbm
(594 B)
📄
gs_s.xpm
(957 B)
📄
gs_s_m.xbm
(604 B)
📄
gs_t.xbm
(345 B)
📄
gs_t.xpm
(605 B)
📄
gs_t_m.xbm
(355 B)
📄
gs_wl1_e.ps
(2.47 KB)
📄
gs_wl2_e.ps
(2.47 KB)
📄
gs_wl5_e.ps
(2.49 KB)
📄
gslp.ps
(19.18 KB)
📄
gsnup.ps
(2.66 KB)
📄
ht_ccsto.ps
(222.85 KB)
📄
image-qa.ps
(71.6 KB)
📄
impath.ps
(5.41 KB)
📄
jispaper.ps
(930 B)
📄
landscap.ps
(1.49 KB)
📄
level1.ps
(110 B)
📄
lines.ps
(3.78 KB)
📄
markhint.ps
(3.39 KB)
📄
markpath.ps
(1.85 KB)
📄
mkcidfm.ps
(7.13 KB)
📄
necp2x.upp
(1.02 KB)
📄
necp2x6.upp
(1.04 KB)
📄
packfile.ps
(10.12 KB)
📄
pcharstr.ps
(3.5 KB)
📄
pdf2dsc.ps
(8.18 KB)
📄
pdfopt.ps
(35.66 KB)
📄
pdfwrite.ps
(11.4 KB)
📄
pf2afm.ps
(14.99 KB)
📄
pfbtopfa.ps
(1.11 KB)
📄
ppath.ps
(1.93 KB)
📄
pphs
(391 B)
📄
pphs.ps
(6.76 KB)
📄
prfont.ps
(6.33 KB)
📄
printafm.ps
(3.69 KB)
📄
ps2ai.ps
(21.96 KB)
📄
ps2ascii.ps
(43.57 KB)
📄
ps2epsi.ps
(8 KB)
📄
quit.ps
(5 B)
📄
ras1.upp
(211 B)
📄
ras24.upp
(215 B)
📄
ras3.upp
(210 B)
📄
ras32.upp
(192 B)
📄
ras4.upp
(216 B)
📄
ras8m.upp
(205 B)
📄
rollconv.ps
(11.49 KB)
📄
s400a1.upp
(1.42 KB)
📄
s400b1.upp
(1.57 KB)
📄
sharp.upp
(1.89 KB)
📄
showchar.ps
(2.86 KB)
📄
showpage.ps
(9 B)
📄
sipixa6.upp
(529 B)
📄
st640ih.upp
(2.22 KB)
📄
st640ihg.upp
(1.47 KB)
📄
st640p.upp
(1.87 KB)
📄
st640pg.upp
(1.11 KB)
📄
st640pl.upp
(1.83 KB)
📄
st640plg.upp
(1.08 KB)
📄
stc.upp
(1.87 KB)
📄
stc1520h.upp
(2.1 KB)
📄
stc2.upp
(1.86 KB)
📄
stc200_h.upp
(1.8 KB)
📄
stc2_h.upp
(1.83 KB)
📄
stc2s_h.upp
(2.21 KB)
📄
stc300.upp
(2.08 KB)
📄
stc300bl.upp
(1.31 KB)
📄
stc300bm.upp
(1.39 KB)
📄
stc500p.upp
(1.85 KB)
📄
stc500ph.upp
(1.85 KB)
📄
stc600ih.upp
(2.22 KB)
📄
stc600p.upp
(1.12 KB)
📄
stc600pl.upp
(1.08 KB)
📄
stc640p.upp
(1.07 KB)
📄
stc740ih.upp
(2.07 KB)
📄
stc800ih.upp
(2.1 KB)
📄
stc800p.upp
(1.08 KB)
📄
stc800pl.upp
(1.07 KB)
📄
stc_h.upp
(1.86 KB)
📄
stc_l.upp
(730 B)
📄
stcany.upp
(669 B)
📄
stcany_h.upp
(677 B)
📄
stcinfo.ps
(25.13 KB)
📄
stcolor.ps
(5.1 KB)
📄
stocht.ps
(2.58 KB)
📄
traceimg.ps
(1.49 KB)
📄
traceop.ps
(2.67 KB)
📄
type1enc.ps
(2.48 KB)
📄
type1ops.ps
(7.4 KB)
📄
uninfo.ps
(5.99 KB)
📄
unprot.ps
(1.86 KB)
📄
viewcmyk.ps
(2.06 KB)
📄
viewgif.ps
(4.47 KB)
📄
viewjpeg.ps
(4.83 KB)
📄
viewmiff.ps
(3.69 KB)
📄
viewpbm.ps
(5.18 KB)
📄
viewpcx.ps
(4.24 KB)
📄
viewps2a.ps
(1.25 KB)
📄
wftopfa.ps
(8.71 KB)
📄
winmaps.ps
(3.66 KB)
📄
wrfont.ps
(17.74 KB)
📄
zeroline.ps
(2.41 KB)
Editing: addxchar.ps
% Copyright (C) 1999 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: addxchar.ps 6300 2005-12-28 19:56:24Z giles $ % Add the Central European and other Adobe extended Latin characters to a % Type 1 font. % Requires -dWRITESYSTEMDICT to disable access protection. (type1ops.ps) runlibfile % ---------------- Utilities ---------------- % /addce_dict 50 dict def addce_dict begin % Define the added copyright notice. /addednotice (. Portions Copyright (C) 1999 Aladdin Enterprises.) def % Open a font for modification by removing the FID and changing the % FontName. Removing UniqueID and XUID is not necessary, since we % will only be adding characters. /openfont { % <name> <font> openfont <name> <font'> dup length dict copy dup /FID undef dup /FontName 3 index put } def % Do the equivalent of false charpath for a glyph. % This should really be an operator! /glyphpath { % <glyph> glyphpath - currentfont /Encoding get 0 3 -1 roll put <00> false charpath } def % Do the equivalent of charpath + pathbbox for a glyph. /glyphbbox { % <glyph> glyphbbox <llx> <lly> <urx> <ury> % We cache this value, because it's expensive to compute. BBoxes 1 index .knownget { exch pop } { gsave newpath 0 0 moveto dup glyphpath [pathbbox] grestore BBoxes 3 -1 roll 2 index put } ifelse aload pop } def % Get the side bearing and width for a glyph. /glyphsbw { % <glyph> glyphsbw <lsbx> <wx> % We cache this value, because it's expensive to compute. SBW 1 index .knownget { exch pop } { dup glyphcs { dup /hsbw eq { pop exit } if } forall 2 array astore SBW 3 -1 roll 2 index put } ifelse aload pop } def % Get the CharString for a glyph, as an array. /glyphcs { % <glyph> glyphcs <array> CharStrings exch get 4330 exch dup length string .type1decrypt exch pop dup length lenIV sub lenIV exch getinterval 0 () /SubFileDecode filter [ exch charstack_read ] } def % Find an occurrence of a value in an array. /asearch { % <array> <value> asearch <index> true % <array> <value> asearch false false 0 4 2 roll exch { % Stack: false index value element 2 copy eq { pop pop exch not exch dup exit } if exch 1 add exch } forall pop pop } def % Convert an array back to a CharString. /csdef { % <glyph> <array> csdef - charproc_string 4330 exch dup .type1encrypt exch pop readonly CharStrings 3 1 roll put } def % Split an accented character name. /splitaccented { % <Baccent> splitaccented <Baccent> <B> <accent> dup =string cvs dup 0 1 getinterval cvn exch dup length 1 sub 1 exch getinterval cvn } def % Begin the definition of a 'seac' character. % Defines accent, base, abox, bbox. % The initial dx lines up the origins of the base and the accent. /beginseac { % <bchar> <achar> beginseac % -mark- <lsbx> <wx> /hsbw <asb> <dx> /accent exch def /base exch def /abox [accent glyphbbox] def /bbox [base glyphbbox] def [ base glyphsbw /hsbw accent glyphsbw pop dup 4 index sub } def % Center the accent over the base of a 'seac' character. /centeraccent { % <dx> centeraccent <adx> bbox 2 get bbox 0 get add 2 div abox 2 get abox 0 get add 2 div sub add } def % Finish the definition of a 'seac' character. /finishseac { % <charname> -mark- ... <adx> <ady> finishseac - exch cvi exch cvi charindex base get charindex accent get /seac ] csdef } def % ---------------- Main program ---------------- % % Define accented characters that can be made with seac, % with the accent centered over the character. /seacchars [ /Abreve /Amacron /Cacute /Ccaron /Dcaron /Ecaron /Edotaccent /Emacron /Gbreve /Idotaccent /Imacron /Lacute /Nacute /Ncaron /Ohungarumlaut /Omacron /Racute /Rcaron /Sacute /Scedilla /Tcaron /Uhungarumlaut /Umacron /Uogonek /Uring /Zacute /Zdotaccent /abreve /amacron /cacute /ccaron /ecaron /edotaccent /emacron /gbreve /lacute /nacute /ncaron /ohungarumlaut /omacron /racute /rcaron /sacute /scedilla /uhungarumlaut /umacron /uring /zacute /zdotaccent ] def % Define seac characters where the accent lines up with the right % edge of the character. /seacrightchars [ /Aogonek /Eogonek /Iogonek /aogonek /eogonek /iogonek /uogonek ] def % Define seac characters where the caron becomes an appended quoteright. /seaccaronchars [ /dcaron /lcaron /tcaron ] def % Define seac characters using commaaccent. /seaccommachars [ /Gcommaaccent /Kcommaaccent /Lcommaaccent /Ncommaaccent /Rcommaaccent /Scommaaccent /Tcommaaccent /gcommaaccent /kcommaaccent /lcommaaccent /ncommaaccent /rcommaaccent /scommaaccent /tcommaaccent ] def % Define the characters copied from the Symbol font. /symbolchars [ /Delta /greaterequal /lessequal /lozenge /notequal /partialdiff /summation ] def % Define the procedures for editing the commaaccent character. % Delete all the hints, since it's too hard to adjust them. /caedit mark /rmoveto { exch commatop sub cvi exch } /hstem { pop pop pop } /vstem 1 index /callothersubr { dup 3 eq { 4 { pop } repeat /skip true def } if } /pop { skip { pop /skip false def } if } .dicttomark def /addce { % <name> <font> addce <font'> 20 dict begin /origfont 1 index def openfont dup /CharStrings 2 copy get dup length dict copy put dup /Encoding 2 copy get dup length array copy put dup /FontInfo 2 copy get dup length dict copy put definefont /font exch def currentdict font end begin begin font 1000 scalefont setfont /symbolfont /Symbol findfont def /BBoxes CharStrings length dict def /SBW CharStrings length dict def /italfactor FontInfo /ItalicAngle .knownget { neg dup sin exch cos div } { 0 } ifelse def % Invert the Encoding (needed for seac). /charindex 256 dict def 0 1 255 { charindex exch Encoding 1 index get exch put } for % Add the commaaccent character, by moving the comma downward. /comma glyphbbox /commatop exch def pop pop pop /comma glyphcs /skip false def [ exch { caedit 1 index .knownget { exec } if } forall ] /commaaccent exch csdef % Add the accented characters that can be made with seac. seacchars { splitaccented beginseac centeraccent % If the accent would collide with the base character, % raise it a little. abox 1 get bbox 3 get sub dup 0 le { % ... but not if the accent is in the low position. abox 1 get 0 gt { neg 60 add % Adjust the X position if italic. dup italfactor mul 3 -1 roll add exch } { pop 0 } ifelse } { pop 0 } ifelse finishseac } forall seacrightchars { splitaccented beginseac bbox 2 get abox 2 get sub add % line up right edges 0 finishseac } forall /dcroat /d /hyphen beginseac bbox 2 get abox 2 get sub add % line up right edges 0 finishseac /imacron /dotlessi /macron beginseac centeraccent 0 finishseac /Lcaron /L /quoteright beginseac bbox 2 get abox 2 get sub add % line up right edges 0 finishseac seaccaronchars { dup =string cvs 0 1 getinterval cvn /quoteright beginseac % Move the quote to the right of the character. bbox 2 get abox 0 get sub 50 add add % Adjust the character width as well. 4 -1 roll abox 2 get abox 0 get sub 50 add add cvi 4 1 roll 0 finishseac } forall seaccommachars { dup =string cvs 0 1 getinterval cvn /comma beginseac centeraccent commatop neg % Lower the accent if the character extends below % the baseline bbox 1 get 0 .min add finishseac } forall % Add the characters from the Symbol font. % We should scale them to match the FontBBox, but we don't. symbolchars { symbolfont /CharStrings get 1 index get CharStrings 3 1 roll put } forall % Add the one remaining character. CharStrings /Dcroat CharStrings /Eth get put % Recompute the FontBBox, since some of the accented characters % may have enlarged it. /llx 1000 def /lly 1000 def /urx 0 def /ury 0 def CharStrings { pop glyphbbox ury .max /ury exch def urx .max /urx exch def lly .min /lly exch def llx .min /llx exch def } forall /FontBBox llx cvi lly cvi urx ceiling cvi ury ceiling cvi 4 packedarray def % Restore the Encoding and wrap up. [/Copyright /Notice] { FontInfo 1 index .knownget { addednotice concatstrings FontInfo 3 1 roll put } { pop } ifelse } forall FontName font openfont dup /Encoding origfont /Encoding get put definefont end end } def currentdict end readonly pop % addce_dict /addce { addce_dict begin addce end } def % ---------------- Integration ---------------- % % We would like to patch the font loader so that it adds the extended % Latin characters automatically. We haven't done this yet. % ---------------- Test program ---------------- % /TEST where { pop TEST } { false } ifelse { /FONT where { pop } { /FONT /Palatino-Italic def } ifelse (unprot.ps) runlibfile unprot (wrfont.ps) runlibfile wrfont_dict begin /eexec_encrypt true def /binary_CharStrings true def end save FONT findfont /Latin-CE exch addce setfont (t.ce.pfb) (w) file dup writefont closefile restore (prfont.ps) runlibfile (t.ce.pfb) (r) file .loadfont /Latin-CE DoFont quit } if
Upload File
Create Folder