public class TTFFontLoader extends FontLoader
embedded, fontFileURI, loaded, log, resolver, returnFont, useKerning| Constructor and Description |
|---|
TTFFontLoader(String fontFileURI,
FontResolver resolver)
Default constructor
|
TTFFontLoader(String fontFileURI,
String subFontName,
boolean embedded,
EncodingMode encodingMode,
boolean useKerning,
FontResolver resolver)
Additional constructor for TrueType Collections.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
read()
Reads/parses the font data.
|
getFont, loadFont, loadFont, loadFont, openFontUripublic TTFFontLoader(String fontFileURI, FontResolver resolver)
fontFileURI - the URI representing the font fileresolver - the FontResolver for font URI resolutionpublic TTFFontLoader(String fontFileURI, String subFontName, boolean embedded, EncodingMode encodingMode, boolean useKerning, FontResolver resolver)
fontFileURI - the URI representing the font filesubFontName - the sub-fontname of a font in a TrueType Collection (or null for normal
TrueType fonts)embedded - indicates whether the font is embedded or referencedencodingMode - the requested encoding modeuseKerning - true to enable loading kerning info if available, false to disableresolver - the FontResolver for font URI resolutionprotected void read()
throws IOException
read in class FontLoaderIOException - In case of an I/O errorCopyright © 2007-2020. All Rights Reserved.