Details
Description
Some fonts legitimately do not have a 'loca' table as specified in Apple documentation:
The 'loca' table only used with fonts that have TrueType outlines (that is, a 'glyf' table). Fonts that have no TrueType outlines do not require a 'loca' table.
This has led to some misunderstanding in the NotoColorEmoji google font project as testified by those issues :
https://github.com/googlefonts/noto-emoji/issues/190
https://github.com/googlefonts/noto-emoji/issues/288
Also reproduced with JoyPixels.ttf from https://www.joypixels.com/ installed through package manager.
The TTFParser class just do not accept this font based on the absence of the 'loca' table and it can be verified with the simple test:
PDType0Font.load(doc, getClass().getResourceAsStream("NotoColorEmoji.ttf"), false);