pdf - -dSubsetFonts=false option stops showing TrueType fonts /glyphshow -
i have postscript uses truetype fonts. however, want include rarly used characters registration marks (®) , right/left single/double quotes (’, “ etc).
so used glyphshow , called names of glyphs
%! << /pagesize [419.528 595.276] >> setpagedevice /devicergb setcolorspace % page 1 % % set original top left % 0 595.276 translate 1 -1 scale gsave % % save state before moving x y images % 1 -1 scale /bauerbodonibt-roman findfont 30 scalefont setfont % set pt size %-3.792 - 16 1 0 0 setrgbcolor 10 -40 moveto /quoteright glyphshow 10 -80 moveto /registered glyphshow /museo-700 findfont 30 scalefont setfont % set pt size %-3.792 - 16 1 0 1 setrgbcolor 10 -120 moveto /quoteright glyphshow 10 -180 moveto /registered glyphshow showpage
when execute postscript using following command (due requirement pdf editable in illustrator i.e. can opened fonts intact) pdf shows nothing seems contain glyphs if copy , paste pdf text file.
gs -o gly_subsetfalse.pdf -sdevice=pdfwrite -dcompatibilitylevel=1.3 -dsubsetfonts=false -dpdfsettings=/prepress textglyph.ps
however, above command causes issues pulling illustrator. rare glyphs become unrecongisble (', Æ). normal characters , regular glyphs seem fine i.e. /a glyphshow , show text appear in pdf , illustrator.
so, seems having subsetfonts option true shows rare glyphs stops me pulling pdf illustrator.
attached truetype fonts reference , 2 pdfs (one subsetfont option being truw , other not - default).
i have tried following command same ill results (no visible glyphs appearing on pdf , illustrator incorrectly shows glyphs).
gs -o gly_subsetfalse_embedallfonts.pdf -sdevice=pdfwrite -dcompatibilitylevel=1.3 -dpdfsettings=/prepress -dsubsetfonts=false -dembedallfonts=true textglyph.ps
but command preflight error pdf if helps:
"glyph width info in pdf not match width info in embedded font"
attached files spoke above - click here.
encoding font not produce results.
i have encoded truetype(and type42) font in postscript , listed few new characters glyphshow.
results are:
command 1:
gs -o encode_ttf_subset_false.pdf -sdevice=pdfwrite -dsubsetfonts=false encode.ps
results 1: open pdf in acrobat not display glyphshow characters.
command 2:
gs -o encode_ttf_subset_true.pdf -sdevice=pdfwrite encode.ps
results 2: open pdf in acrobat , show glyphshow characters not in illustrator.
command 3:
gs -o encode_ttf_subset_false_embedtrue.pdf -sdevice=pdfwrite -dsubsetfonts=false -dembedallfonts=true encode.ps
results 3: same result 1 (glyphshow characters not appear).
below new postscript encoded ttf , type42 (i've included them in file further below).
is bug @ least ghostscript?
/museobold findfont dup %%%%% type42 font length dict copy begin /encoding encoding 256 array copy def encoding 1 /oacute put encoding 2 /aacute put encoding 3 /eacute put encoding 4 /questiondown put encoding 5 /quotedblleft put encoding 6 /quoteright put encoding 7 /quotedblbase put /museobold-esp currentdict definefont pop end /museobold-esp 18 selectfont 72 600 moveto (\005d\001lnde est\002 el camino san jos\003? more characters \006 , \007) show %%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%% /bauerbodonibt-roman findfont dup length dict copy begin /encoding encoding 256 array copy def encoding 1 /oacute put encoding 2 /aacute put encoding 3 /eacute put encoding 4 /questiondown put encoding 5 /quotedblleft put encoding 6 /quoteright put encoding 7 /quotedblbase put /bauerbodonibt-roman-esp currentdict definefont pop end /bauerbodonibt-roman-esp 18 selectfont 72 630 moveto (\005d\001lnde est\002 el camino san jos\003? more characters \006 , \007) show showpage
click here downloading following: bbbtrom.ttf (truetype font); 3 pdfs (results 1, 2 , 3); museobold (truetype font converted type42 using ttftotype42) , encode.ps.
this problem using illustrator general pdf application. can't that. note you've found ways round in past, time believe out of luck.
the postscript glypshow operator doesn't have pdf equivalent. also, because of way glyphshow works, cannot use existing font instance store glyph (because glyph may not be, , isn't, present in encoding). result pdfwrite thing can. makes new font consists of glyphs used glyphshow specific original font's charstrings.
because don;t have encoding work have use custom (suymbolic) encoding (because fonts in pdf file have have encoding) previous experience suspect means illustrator unable read font embed.
using glyphshow pdfwrite not encourage.
now having said that, there should not problem pdf file when subsetfonts true, though have open bug report sounds similar. haven't said version of ghostscript using, can't sure if same problem. (nor have same fonts etc). note not (i believe) related problem illustrator, that's caused use of glyphshow , illustrator limitation.
as general rule not use -dpdfsettings, not while trying debug problem, nor limit output pdf 1.3.
Comments
Post a Comment