if (t0font.getDescendantFont() instanceof PDCIDFontType2) int unitsPerEm = ((PDCIDFontType2) t0font.getDescendantFont()).getTrueTypeFont().getHeader().getUnitsPerEm(); at.scale(1000d / unitsPerEm, 1000d / unitsPerEm);
/** * Constructor. * * @param type0Font Type0 font, with CIDFontType2 descendant */ TTFGlyph2D(PDType0Font type0Font) throws IOException { this(((PDCIDFontType2)type0Font.getDescendantFont()).getTrueTypeFont(), type0Font, true); vectorFont = type0Font; }
if (cidFont instanceof PDCIDFontType2) ttf = ((PDCIDFontType2)cidFont).getTrueTypeFont();
PDType0Font t0font = (PDType0Font) font; if (t0font.getDescendantFont() instanceof PDCIDFontType2) { int unitsPerEm = ((PDCIDFontType2) t0font.getDescendantFont()).getTrueTypeFont().getHeader().getUnitsPerEm(); at.scale(1000d / unitsPerEm, 1000d / unitsPerEm);
if (t0font.getDescendantFont() instanceof PDCIDFontType2) int unitsPerEm = ((PDCIDFontType2) t0font.getDescendantFont()).getTrueTypeFont().getHeader().getUnitsPerEm(); at.scale(1000d / unitsPerEm, 1000d / unitsPerEm);
PDCIDFont cidFont = ((PDType0Font)font).getDescendantFont(); if(cidFont instanceof PDCIDFontType2) { ttf = ((PDCIDFontType2)cidFont).getTrueTypeFont();
if (cidFont instanceof PDCIDFontType2) ttf = ((PDCIDFontType2)cidFont).getTrueTypeFont();
if (cidFont instanceof PDCIDFontType2) ttf = ((PDCIDFontType2)cidFont).getTrueTypeFont();
if (cidFont instanceof PDCIDFontType2) ttf = ((PDCIDFontType2)cidFont).getTrueTypeFont();