public class AfmFontRegistry extends AbstractFontFileRegistry
| Constructor and Description |
|---|
AfmFontRegistry()
Fonts stored by name.
|
| 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() |
createFamily, createStorageLocation, getAllRegisteredFamilies, getDefaultEncoding, getFontFamily, getRegisteredFamilies, getSeenFiles, initialize, isCached, isCacheValid, loadFromCache, loadFromCache, populateFromCache, registerAlternativeName, registerDefaultFontPath, registerFontFile, registerFontFile, registerFontPath, registerFullName, registerPrimaryName, safeSystemGetProperty, storeToCacheprotected FileFilter getFileFilter()
getFileFilter in class AbstractFontFileRegistrypublic FontMetricsFactory createMetricsFactory()
FontRegistrypublic FontCache getSecondLevelCache()
public boolean addFont(File font, String encoding) throws IOException
addFont in class AbstractFontFileRegistryfont - the font file name.encoding - the encoding.IOException - if the base font file could not be read.protected String getCacheFileName()
getCacheFileName in class AbstractFontFileRegistryCopyright © 2020 Hitachi Vantara. All rights reserved.