[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#178717: Fix for bug #178717?



Hi Hilmar,

On Sun, Sep 12, 2010 at 21:30 +0200, Hilmar Preusse wrote:

> I going actually through some old bugs to find out if they are fixed
> or if they're still present in TL. I tried to check
> http://bugs.debian.org/178717 but failed. I'm not even able to
> *compile* the minimal examples provided^1 . Further down Hartmut
> provided another example, which shows the same problem w/o needing
> specific chinese fonts^2. Event that example does not compile on TL
> 2009 using pdfTeX.

I am currently enough out of touch from the TeX-world, that I don't
even have TL 2009 installed somewhere. Nevertheless I made some tests
which might help here. I created a tfm-File from DejaVuSans.ttf, a
font that most of you should have on their system, and installed that
in a very rough fashion for TeX. Addapted test files then showed the
desired bahviour, i.e. the font is marked as subsetted and the file is
small when I tell pdfTeX (from TL 2007) to do so. Here the most
important steps I took: 

$ cp /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf ~/texmf/fonts/truetype/public/dejavu
$ ttf2tfm /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf DejaVuSans.tfm
$ mv DejaVuSans.tfm ~/texmf/fonts/tfm/public/dejavu/

The two testfiles are:

$ cat subset.tex
\pdfmapline{+DejaVuSans <8r.enc <DejaVuSans.ttf}
\font\DejaVuSans  DejaVuSans at 20pt
\DejaVuSans
\input tufte
\bye

$ cat no-subset.tex
\pdfmapline{+DejaVuSans <<DejaVuSans.ttf}
\font\DejaVuSans  DejaVuSans at 20pt
\DejaVuSans
\input tufte
\bye

And the result after pdfTeXing them:

$ pdffonts subset.pdf 
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
QWMSKX+DejaVuSans                    TrueType          yes yes no       4  0
SDXKYB+CMR10                         Type 1            yes yes no       5  0

$ pdffonts no-subset.pdf 
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
DejaVuSans                           TrueType          yes no  no       4  0
SDXKYB+CMR10                         Type 1            yes yes no       5  0

In addition no-subset.pdf is larger than subset.pdf by a factor of
about 20. 

So it looks like everything is fine in TL 2007. I would guess that the
same holds true for TL 2009 and I hope you can retrace my steps using
the above description.

cheerio
ralf




Reply to: