cjk-list
[Top][All Lists]
Advanced

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

Re: [cjk] texlive svn write access Fw: Re: revisiting ttf2tfm and dvipdf


From: Peter Breitenlohner
Subject: Re: [cjk] texlive svn write access Fw: Re: revisiting ttf2tfm and dvipdfmx
Date: Wed, 17 Jul 2013 15:01:00 +0200 (CEST)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

On Wed, 17 Jul 2013, Hin-Tak Leung wrote:

That's texlive shipped with fedora. It says 20130608 r30832 over all.

Hi Hin-Tak,

that is the FreeType 1 version and 'ttf2tfm -help' should say 'Version 1.5'.
Is this 32bit or 64bit?

The segfault happens with
http://ftp.kh.edu.tw/Linux/CLE/fonts/ttf/big5/wangttf/wcl-01.ttf
when generating subfont 55. (and all its family, 02 - 10).

The command line is simply:
ttf2tfm wcl-01.ttf -P 3 -E 4 -q -w   address@hidden@

This is a regression. It worked 10 years ago I wrote it in cjk/doc/pdfhowto/HOWTO.txt. (and I have the 10-yr-old "something55.tfm")

Perhaps 10 years ago you have used a 32bit version and now a 64bit one?

You should get the current TeX Live svn, build the FreeType 2 Version, and
repeat the test with that one.  I have just tried that for 32bit with no
problems.

(gdb) run open/wcl-01.ttf   -P 3 -E 4 -q -w    address@hidden@
Starting program: /usr/bin/ttf2tfm open/wcl-01.ttf -P 3 -E 4 -q -w address@hidden@

Program received signal SIGSEGV, Segmentation fault.
0x000000000041101c in TT_Get_Short () at ./file.c:905
905        getshort = ((Short)CUR_Frame.cursor[0] << 8) |
(gdb) bt
#0  0x000000000041101c in TT_Get_Short () at ./file.c:905
#1 Load_TrueType_Glyph (load_flags=<optimized out>, glyph_index=<optimized out>, glyph=<optimized out>, instance=<optimized out
)
at /usr/src/debug/texlive-2012/source/libs/freetype/freetype-1.5/lib/ttgload.c:813 #2 TT_Load_Glyph (instance=..., glyph=..., address@hidden, loadFlags=<optimized out>, address@hidden) at /usr/src/debug/texlive-2012/source/libs/freetype/freetype-1.5/lib/ttapi.c:1224 #3 0x00000000004071f1 in readttf (address@hidden, quiet=True, address@hidden)
   at ../../../texk/ttf2pk/ttfaux.c:525
#4 0x0000000000401c86 in main (argc=<optimized out>, argv=<optimized out>) at ../../../texk/ttf2pk/ttf2tfm.c:907

This is definitely inside libttf, not much we can do about.

------------

(gdb) run  open-more/mikachanALL.ttc -f 1 -q -w address@hidden@
Starting program: /usr/bin/ttf2tfm open-more/mikachanALL.ttc -f 1 -q -w address@hidden@

Program received signal SIGFPE, Arithmetic exception.
0x0000000000407443 in readttf (address@hidden, quiet=True, address@hidden)
   at ../../../texk/ttf2pk/ttfaux.c:262
262 fnt->xheight = properties.os2->sxHeight * 1000 / fnt->units_per_em;
(gdb) bt
#0 0x0000000000407443 in readttf (address@hidden, quiet=True, address@hidden)
   at ../../../texk/ttf2pk/ttfaux.c:262
#1 0x0000000000401c86 in main (argc=<optimized out>, argv=<optimized out>) at ../../../texk/ttf2pk/ttf2tfm.c:907
(gdb) print fnt->units_per_em
$1 = 0
(gdb) print properties.os2->sxHeight
$2 = 6896
(gdb)

Either bad logic or invalid font data.  Hard to say without mikachanALL.ttc.

Regards
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]