public class TrueTypeFontRegistry extends AbstractFontFileRegistry
Constructor and Description |
---|
TrueTypeFontRegistry() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addFont(File file,
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() |
protected static FontCache |
internalGetSecondLevelCache() |
createFamily, createStorageLocation, getAllRegisteredFamilies, getDefaultEncoding, getFontFamily, getRegisteredFamilies, getSeenFiles, initialize, isCached, isCacheValid, loadFromCache, loadFromCache, populateFromCache, registerAlternativeName, registerDefaultFontPath, registerFontFile, registerFontFile, registerFontPath, registerFullName, registerPrimaryName, safeSystemGetProperty, storeToCache
protected static FontCache internalGetSecondLevelCache()
public FontCache getSecondLevelCache()
protected FileFilter getFileFilter()
getFileFilter
in class AbstractFontFileRegistry
protected boolean addFont(File file, String encoding) throws IOException
AbstractFontFileRegistry
addFont
in class AbstractFontFileRegistry
file
- the font file name.encoding
- the encoding.IOException
- if the base font file could not be read.public FontMetricsFactory createMetricsFactory()
protected String getCacheFileName()
getCacheFileName
in class AbstractFontFileRegistry
Copyright © 2018 Hitachi Vantara. All rights reserved.