public class FileFontSource extends FontSourceBase
| Constructor and Description |
|---|
FileFontSource(java.lang.String filePath)
Ctor.
|
FileFontSource(java.lang.String filePath,
int priority)
Ctor.
|
FileFontSource(java.lang.String filePath,
int priority,
java.lang.String cacheKey)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCacheKey()
The key of this source in the cache.
|
java.lang.String |
getFilePath()
Path to the font file.
|
java.lang.Iterable |
getFontDataInternal() |
int |
getType()
Returns the type of the font source.
|
getAvailableFonts, getPriority, getPriorityInternal, getWarningCallback, setWarningCallbackpublic FileFontSource(java.lang.String filePath)
filePath - Path to font file.public FileFontSource(java.lang.String filePath,
int priority)
filePath - Path to font file.priority - Font source priority. See the FontSourceBase.getPriority() property description for more information.public FileFontSource(java.lang.String filePath,
int priority,
java.lang.String cacheKey)
filePath - Path to font file.priority - Font source priority. See the FontSourceBase.getPriority() property description for more information.cacheKey - The key of this source in the cache. See getCacheKey() property description for more information.public java.lang.String getFilePath()
String value.public java.lang.String getCacheKey()
This key is used to identify cache item when saving/loading font search cache with and methods.
If key is not specified then getFilePath() will be used as a key instead.
String value.public int getType()
getType in class FontSourceBaseFontSourceType constants.public java.lang.Iterable getFontDataInternal()
getFontDataInternal in class FontSourceBase