Fontforge coredumps while trying to extract korean fonts from TTCs

Kirill Churin <[email protected]>
Newsgroups gmane.comp.fonts.fontforge.devel
Message-ID <CAOzeqFmsaEE9P5+ckyeF9_D6fZ1a=2hU+htimD7rvmbMUTsx3A@mail.gmail.com>
    Hello!

    Fontforge coredumps while trying to extract TTFs with embedded bitmaps
from following Korean fonts from Windows 8.1:

    gulim.ttc (http://reflexing.ru/gulim.ttc)
    batang.ttc (http://reflexing.ru/batang.ttc)

    this only happens with bitmaps extraction
        Generate(thefontname + ".ttf", "ttf")
    without bitmaps (Generate(thefontname + ".ttf") it works KO.

    This is on ArchLinux.

fontforge --version
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read
LICENSE.
 Executable based on sources from 07:13 TAHT 27-May-2014-ML-D.
 Library based on sources from 07:13 TAHT 27-May-2014.
 Based on source from git with hash:
fontforge 20140527
libfontforge 20140527-ML

Testcase:
extract.pe file:
-------------------------------CUT
#!/usr/bin/fontforge

i = 1

while (i < $argc)
    theFontNames = FontsInFile($argv[i])
    cnt = SizeOf(theFontNames)

    j = 0
    while ( j<cnt )
        thefontname = theFontNames[j]
        thisPath = $argv[i] + "(" + thefontname + ")"
        Open(thisPath, 1)
        Print(thefontname + ".ttf")
        Generate(thefontname + ".ttf", "ttf")
        Close()
        j++
    endloop
  i = i+1
endloop
Quit(0)
-------------------------------CUT

output:
./extract.pe batang.ttc
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read
LICENSE.
 Executable based on sources from 07:13 TAHT 27-May-2014-ML-D.
 Library based on sources from 07:13 TAHT 27-May-2014.
 Based on source from git with hash:
The PostScript font name "바탕" is invalid.
It should be printable ASCII,
must not contain (){}[]<>%/ or space
and must be shorter than 63 characters
Batang.ttf
Segmentation fault (core dumped)

I can send you core dump if you ask.


-- 
Kirill Churin

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

_______________________________________________
Fontforge-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.