private TrueTypeFont findFontOrSubstitute() throws IOException { TrueTypeFont ttfFont; CIDFontMapping mapping = FontMappers.instance() .getCIDFont(getBaseFont(), getFontDescriptor(), getCIDSystemInfo()); if (mapping.isCIDFont()) { ttfFont = mapping.getFont(); } else { ttfFont = (TrueTypeFont)mapping.getTrueTypeFont(); } if (mapping.isFallback()) { LOG.warn("Using fallback font " + ttfFont.getName() + " for CID-keyed TrueType font " + getBaseFont()); } return ttfFont; }
LOG.info("OpenType Layout tables used in font " + getBaseFont() + " are not implemented in PDFBox and will be ignored"); LOG.warn("Could not read embedded OTF for font " + getBaseFont(), e);
private TrueTypeFont findFontOrSubstitute() throws IOException { TrueTypeFont ttfFont; CIDFontMapping mapping = FontMappers.instance() .getCIDFont(getBaseFont(), getFontDescriptor(), getCIDSystemInfo()); if (mapping.isCIDFont()) { ttfFont = mapping.getFont(); } else { ttfFont = (TrueTypeFont)mapping.getTrueTypeFont(); } if (mapping.isFallback()) { LOG.warn("Using fallback font " + ttfFont.getName() + " for CID-keyed TrueType font " + getBaseFont()); } return ttfFont; }
private TrueTypeFont findFontOrSubstitute() throws IOException { TrueTypeFont ttfFont; CIDFontMapping mapping = FontMappers.instance() .getCIDFont(getBaseFont(), getFontDescriptor(), getCIDSystemInfo()); if (mapping.isCIDFont()) { ttfFont = mapping.getFont(); } else { ttfFont = (TrueTypeFont)mapping.getTrueTypeFont(); } if (mapping.isFallback()) { LOG.warn("Using fallback font " + ttfFont.getName() + " for CID-keyed TrueType font " + getBaseFont()); } return ttfFont; }
LOG.info("OpenType Layout tables used in font " + getBaseFont() + " are not implemented in PDFBox and will be ignored"); LOG.warn("Could not read embedded OTF for font " + getBaseFont(), e); LOG.warn("Could not read embedded OTF for font " + getBaseFont(), e);
LOG.info("OpenType Layout tables used in font " + getBaseFont() + " are not implemented in PDFBox and will be ignored"); LOG.warn("Could not read embedded OTF for font " + getBaseFont(), e);