public class PfmFontRegistry extends AbstractFontFileRegistry
Constructor and Description |
---|
PfmFontRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
addFont(File font,
String encoding)
Adds the fontname by creating the basefont object.
|
FontMetricsFactory |
createMetricsFactory()
Creates a new font metrics factory.
|
protected String |
getCacheFileName() |
protected FileFilter |
getFileFilter() |
FontCache |
getSecondLevelCache() |
boolean |
isItextCompatibleChecks() |
void |
setItextCompatibleChecks(boolean itextCompatibleChecks) |
createFamily, createStorageLocation, getAllRegisteredFamilies, getDefaultEncoding, getFontFamily, getRegisteredFamilies, getSeenFiles, initialize, isCached, isCacheValid, loadFromCache, loadFromCache, populateFromCache, registerAlternativeName, registerDefaultFontPath, registerFontFile, registerFontFile, registerFontPath, registerFullName, registerPrimaryName, safeSystemGetProperty, storeToCache
public boolean isItextCompatibleChecks()
public void setItextCompatibleChecks(boolean itextCompatibleChecks)
protected FileFilter getFileFilter()
getFileFilter
in class AbstractFontFileRegistry
public FontMetricsFactory createMetricsFactory()
FontRegistry
public FontCache getSecondLevelCache()
public boolean addFont(File font, String encoding) throws IOException
addFont
in class AbstractFontFileRegistry
font
- the font file name.encoding
- the encoding.IOException
- if the base font file could not be read.protected String getCacheFileName()
getCacheFileName
in class AbstractFontFileRegistry
Copyright © 2018 Hitachi Vantara. All rights reserved.