List of usage examples for com.itextpdf.text FontFactory defaultEmbedding
boolean defaultEmbedding
To view the source code for com.itextpdf.text FontFactory defaultEmbedding.
Click Source Link
From source file:com.vectorprint.report.itext.style.FontLoader.java
License:Open Source License
public boolean isEmbedFonts() { return FontFactory.defaultEmbedding; }
From source file:com.vectorprint.report.itext.style.FontLoader.java
License:Open Source License
public FontLoader setEmbedFonts(boolean embedFonts) { FontFactory.defaultEmbedding = embedFonts; return this; }
From source file:com.vectorprint.report.itext.style.stylers.DocumentSettings.java
License:Open Source License
/** * If your settings contain a key {@link #FONTS} it is assumed to be a list of directory names where fonts are loaded * from./*w ww.j a va2 s . c om*/ * * @see EnhancedMap#getStringProperties(java.lang.String..., java.lang.String...) * @see FontFactory#registerDirectory(java.lang.String) * @throws VectorPrintException */ @Override public void loadFonts() throws VectorPrintException { if (getSettings().containsKey(FONTS)) { if (getValue(PDFA, Boolean.class)) { FontFactory.defaultEmbedding = true; } log.info("loading fonts from " + Arrays.asList(getSettings().getStringProperties(null, FONTS))); for (String dir : getSettings().getStringProperties(null, FONTS)) { int i = FontFactory.registerDirectory(dir); log.fine(String.format("%s fonts loaded from %s", i, dir)); } log.info("fonts available: " + FontFactory.getRegisteredFonts()); } else { log.warning(String.format("setting \"%s\" for font directory not found, not loading fonts", FONTS)); } }