On 13.12.04 Hartmut Henkel ([EMAIL PROTECTED]) wrote: Hi all,
[subsetting of True Type fonts using pdftex] > > i can't repeat the example, as i don't have a running CJK environment. > But the same happens with a random "western" TT font, e. g. > > \pdfmapline{+Packa___ <8r.enc <PackardAntique.ttf} > \font\Packa Packa___ at 20pt > \Packa > \input tufte > \bye > > (the used encoding 8r.enc is nonsense for .ttf) > > Then: > > $ pdffonts x.pdf > name type emb sub uni object ID > ------------------------------------ ------------ --- --- --- --------- > Packa___ TrueType yes no no 6 0 > RCFUQK+CMR10 Type 1 yes yes no 9 0 > > But now comes the interesting part: > > $ ls -l x.pdf PackardAntique.ttf > 65120 2003-09-06 PackardAntique.ttf > 11472 12-13 22:45 x.pdf > > Doesn't the file size of the result suggest, that it's subsetted? Then > tried the same with a non-subsetted font: > > \pdfmapline{+Packa___ <<PackardAntique.ttf} > \font\Packa Packa___ at 20pt > \Packa > \input tufte > \bye > > $ ls -l x.pdf > 37804 12-13 22:50 x.pdf > > See the significantly larger file size. > > $ pdffonts x.pdf > name type emb sub uni object ID > ------------------------------------ ------------ --- --- --- --------- > Packa___ TrueType yes no no 6 0 > AUKISB+CMR10 Type 1 yes yes no 9 0 > > Acrobat reader 5.0.5 woody i686 doesn't tell "subsetted" here for the > TTF, so there is a discrepancy between acroread and pdffonts. Also > interesting is that the acroread "Document Properties/Fonts" window > changes if one zooms around a little. Looks buggy. > > So what is the criteria in the PDF file that the pdffonts tool or > acroread decides it's subsetted or not? No idea. It seems that pdftex > does in fact some kind of subsetting, and from the practical standpoint, > the PDF file with subsetted TT fonts is significantly smaller than the > one with fully embedded TT fonts. > >From the changelog of latest pdfTeX (1.21a), which made it into teTeX-beta: - added subset tag for True Type fonts I hoped just that would change the behavior. I tried to process the files I posted in my report and got: Error: pdflatex (file /usr/share/texmf/fonts/truetype/arphic/bsmi00lp.ttf): cmap: unicode EEFF is mapped to multiple glyphs ==> Fatal error occurred, the output PDF file is not finished! Does that mean that the ttf file in cjk is broken? The same TeX file proceeds fine with teTeX 2.99.10 and pdfTeX 1.20c. However the pdf finally states that the fonts are not subsetted, although they are. Unfortunately I don't have any other True Type font I can use for testing. Kind Regards, Hilmar -- Never do today what you can put off until tomorrow. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]