PDType1Font pdType1Font = (PDType1Font)font;
glyph2D = new Type1Glyph2D(pdType1Font); // T1 is never null
}
else if (font instanceof PDType1CFont)
{
PDType1CFont type1CFont = (PDType1CFont)font;
if (type1CFont.getCFFType1Font() != null) // todo: could be null (need to incorporate fallback)
{
glyph2D = new Type1Glyph2D(type1CFont);
}
}
else if (font instanceof PDType0Font)