Bugs item #874, was opened at 2007-10-11 14:34
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=493&aid=874&group_id=106
Category: Fonts
Group: v1.40.5
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Stefan Becuwe (sbecuwe)
Assigned to: Hartmut Henkel (hhenkel)
Summary: problem with writettf?
Initial Comment:
Hello
I'm using texlive 2007 and encountered the following
problem with a truetype font:
[...]
{/usr/local/apps/texlive-2007/texmf/fonts/enc/ttf2pk/ba
se/T1-WGL4.enc} 0 && index <
name_record_num && fd_cur->subset_tag != ((void *)0)'
failed.
Upgrading pdftex to 1.40.5 still produces the same
error.
My previous texlive version (2005 or 2006) didn't have
that problem. Replacing Auto1-Light.ttf by another
ttf, such as technicn.ttf, does not result in an error.
So it's probably related to the Auto1-Light.ttf file
itself, but it seems the behaviour of pdftex has
changed over the years...
Best regards
Stefan
----------------------------------------------------------------------
Comment By: Hartmut Henkel (hhenkel)
Date: 2007-10-12 20:59
Message:
Logged In: YES
user_id=929
seems in the TTF 'name' table normally the name_id is the
same number as the running entry index i. Then everything
runs fine. But with the Auto1-Light font that's not the
case: at i = 0 there is name_id = 1. So AFAICS the font file
might be a little unusual but it's ok, and pdftex/luatex
should be patched.
Regards, Hartmut
----------------------------------------------------------------------
Comment By: Hartmut Henkel (hhenkel)
Date: 2007-10-12 13:36
Message:
Logged In: YES
user_id=929
ah the font file is in your testcase tar, thanks!
----------------------------------------------------------------------
Comment By: Hartmut Henkel (hhenkel)
Date: 2007-10-12 13:31
Message:
Logged In: YES
user_id=929
thanks a lot for the test, but the fact that it works after
the patch suggests that actually your TT font is broken (not
pdftex) -- which might even generate broken or non-standard
PDF files, beware! Seems the index = 0 should never happen
with a normal font. So it would help a lot to have your font
for inspection.
Regards, Hartmut
----------------------------------------------------------------------
Comment By: Stefan Becuwe (sbecuwe)
Date: 2007-10-12 09:54
Message:
Logged In: YES
user_id=4723
Changing index > 0 into index >= 0 did solve the problem.
I have attached anyway the minimal testcase (generated
after the suggested patch). Thanks for solving this problem!
Stefan
----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros)
Date: 2007-10-11 19:21
Message:
Logged In: YES
user_id=421
Can you create a minimal testcase and attach it here
together with the font? systems/mkjobtexmf from CTAN might
be helpful.
----------------------------------------------------------------------
Comment By: Hartmut Henkel (hhenkel)
Date: 2007-10-11 16:14
Message:
Logged In: YES
user_id=929
does it go away if you change in pdftex-1.40.5, writettf.c
in function prepend_subset_tag() the line assert(index >
0... into assert(index >= 0...?
----------------------------------------------------------------------
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=493&aid=874&group_id=106