Re: [iText-questions] Table 'loca' does not exist (Android)

2014-09-14 Thread Michael Totschnig
Hello Paulo, many thanks for the answer. My problem is that I am iterating over the fonts that are available on the device, and I do not know which of them might have the same problems. The TTF file is accepted by the createFont command, and the error is only triggered when the document is

Re: [iText-questions] Table 'loca' does not exist (Android)

2014-09-14 Thread Paulo Soares
You only get the error on closing because that's the time that the font is subset and the missing tables are used. There's no ready made way to detect it up front but it's straight forward to copy the code that lists the TT tables and check if loca or glyf is there. Paulo On Sun, Sep 14, 2014 at

[iText-questions] Table 'loca' does not exist (Android)

2014-09-13 Thread Michael Totschnig
Hello, For generating PDFs from text input by user on Android I am using the systems TTF files found in /system/fonts . This works fine for generating Chinese or Arab documents, but is raising an error, if the user uses emojs available in a font called NotoColorEmoji.ttf . The stacktrace is:

Re: [iText-questions] Table 'loca' does not exist (Android)

2014-09-13 Thread Paulo Soares
That's a problem with the font, it contains color bitmaps and won't even open in windows. Paulo On Sat, Sep 13, 2014 at 10:17 PM, Michael Totschnig mich...@totschnig.org wrote: Hello, For generating PDFs from text input by user on Android I am using the systems TTF files found in