org.apache.fop.fonts.truetype
Class OFFontLoader
java.lang.Object
org.apache.fop.fonts.FontLoader
org.apache.fop.fonts.truetype.OFFontLoader
public class OFFontLoader
- extends FontLoader
Loads a TrueType font into memory directly from the original font file.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OFFontLoader
public OFFontLoader(java.net.URI fontFileURI,
InternalResourceResolver resourceResolver)
- Default constructor
- Parameters:
fontFileURI - the URI representing the font fileresourceResolver - the resource resolver for font URI resolution
OFFontLoader
public OFFontLoader(java.net.URI fontFileURI,
java.lang.String subFontName,
boolean embedded,
EmbeddingMode embeddingMode,
EncodingMode encodingMode,
boolean useKerning,
boolean useAdvanced,
InternalResourceResolver resolver)
- Additional constructor for TrueType Collections.
- Parameters:
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 referencedembeddingMode - the embedding mode of the fontencodingMode - the requested encoding modeuseKerning - true to enable loading kerning info if available, false to disableuseAdvanced - true to enable loading advanced info if available, false to disableresolver - the FontResolver for font URI resolution
read
protected void read()
throws java.io.IOException
- Reads/parses the font data.
- Specified by:
read in class FontLoader
- Throws:
java.io.IOException - In case of an I/O error
readHeader
public static java.lang.String readHeader(FontFileReader fontFile)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.