Table 'loca' does not exist (Android)

Michael Totschnig <[email protected]>
Newsgroups gmane.comp.java.lib.itext.general
Message-ID <[email protected]>
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:

09-13 23:15:35.244: E/DEBUG(25717): ExceptionConverter:
com.itextpdf.text.DocumentException: Table 'loca' does not exist in
/system/fonts/NotoColorEmoji.ttf
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.TrueTypeFontSubSet.readLoca(TrueTypeFontSubSet.java:260)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.TrueTypeFontSubSet.process(TrueTypeFontSubSet.java:135)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.TrueTypeFont.getSubSet(TrueTypeFont.java:1160)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.TtfUnicodeWriter.writeFont(TtfUnicodeWriter.java:83)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.TrueTypeFontUnicode.writeFont(TrueTypeFontUnicode.java:348)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.FontDetails.writeFont(FontDetails.java:383)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.PdfWriter.addSharedObjectsToBody(PdfWriter.java:1373)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.PdfWriter.close(PdfWriter.java:1264)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.pdf.PdfDocument.close(PdfDocument.java:882)
09-13 23:15:35.244: E/DEBUG(25717): 	at
com.itextpdf.text.Document.close(Document.java:416)

Is this a bug in itext or a problem with the font ?

Best regards,

Michael

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
michael.vcf (text/x-vcard, 180 B)
begin:vcard
fn:Michael Totschnig, PhD
n:Totschnig;Michael
email;internet:[email protected]
tel;home:+49 (0) 30 67943729
url:http://michael.totschnig.org
version:2.1
end:vcard
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.