{
LOG.warn("No glyph for " + code + " in font " + font.getName());
}
}
GlyphData glyph = ttf.getGlyph().getGlyph(gid);
// Acrobat only draws GID 0 for embedded or "Standard 14" fonts, see PDFBOX-2372
if (gid == 0 && !font.isEmbedded() && !font.isStandard14())
{
glyph = null;
}
if (glyph == null)
{
// empty glyph (e.g. space, newline)
glyphPath = new GeneralPath();
glyphs.put(gid, glyphPath);
}
else
{
glyphPath = glyph.getPath();
if (hasScaling)
{
AffineTransform atScale = AffineTransform.getScaleInstance(scale, scale);
glyphPath.transform(atScale);
}