Seg fault for font issue
Opened this issue · 2 comments
I have added ArialMT and also update microsoft fonts in my system .
Still gettting this issue .
Please advise
Add new temporary file: /tmp/pdf2htmlEX-f0GoDB/__css
Add new temporary file: /tmp/pdf2htmlEX-f0GoDB/__outline
Add new temporary file: /tmp/pdf2htmlEX-f0GoDB/__pages
Install font 1: (7 0) TQUJCN+ArialMT
Add new temporary file: /tmp/pdf2htmlEX-f0GoDB/f1.ttf
Embed font: /tmp/pdf2htmlEX-f0GoDB/f1.ttf 1
Add new temporary file: /tmp/pdf2htmlEX-f0GoDB/__raw_font_1.ttf
em size: 2048
Segmentation fault (core dumped)
@DebayanChakraborty I was having the same issue on Ubuntu 16. I fixed it by installing @coolwanglu's fork of fontforge and rebuilding pdf2htmlEX.
the fork of fontforge is available here: https://github.com/coolwanglu/fontforge
@DebayanChakraborty I still got the same issue (focused on Arial Unicode MS) on CentOS 6.5 although I've installed @coolwanglu's fork of fontforge. The log is following by using --debug 1:
Install font 9: (31 0) ABCDEE+Arial Unicode MS
Add new temporary file: /tmp/pdf2htmlEX-d2h58V/f9.ttf
Embed font: /tmp/pdf2htmlEX-d2h58V/f9.ttf 9
The following table(s) in the font have been ignored by FontForge
Ignoring 'DSIG' digital signature table
Ignoring 'LTSH' linear threshold table
Ignoring 'hdmx' horizontal device metrics table
Add new temporary file: /tmp/pdf2htmlEX-d2h58V/__raw_font_9.ttf
em size: 2048
Add new temporary file: /tmp/pdf2htmlEX-d2h58V/f9.map
space width: 0.278
Segmentation fault
Curiously, I can get the right output to the same PDF file on Windows 7 even if there were some error messages like the below:
Internal Error: Attempt to output 457668 into a 16-bit field. It will be truncated and the file may not be useful.
A ligature index is invalid. (60000+ times)
Fortunately, the output is right to most of PDF file in my case.