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, storeToCache
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 © 2017 Hitachi Vantara. All rights reserved.