use of com.tom_roush.fontbox.ttf.CmapLookup in project PdfBox-Android by TomRoush.
the class TestCMap method testPDFBox3997.
/**
* PDFBOX-3997: test unicode that is above the basic multilingual plane, here: helicopter
* symbol, or D83D DE81 in the Noto Emoji font.
*
* @throws IOException
*/
@Test
public // TODO: PdfBox-Android - provide test file
void testPDFBox3997() throws IOException {
String fontPath = "target/pdfs/NotoEmoji-Regular.ttf";
assumeTrue(new File(fontPath).exists());
TrueTypeFont ttf = new TTFParser().parse(fontPath);
CmapLookup cmap = ttf.getUnicodeCmapLookup(false);
Assert.assertEquals(886, cmap.getGlyphId(0x1F681));
ttf.close();
}
Aggregations