| Package | Description |
|---|---|
| org.docx4j.fonts.fop.fonts |
Classes for font handling.
|
| org.docx4j.fonts.fop.fonts.truetype |
Classes for TrueType fonts.
|
| Modifier and Type | Field and Description |
|---|---|
static EncodingMode |
EncodingMode.AUTO
Automatic selection of encoding mode.
|
static EncodingMode |
EncodingMode.CID
CID encoding
|
protected EncodingMode |
EmbedFontInfo.encodingMode
the requested encoding mode for the font
|
static EncodingMode |
EncodingMode.SINGLE_BYTE
Single-byte encoding
|
| Modifier and Type | Method and Description |
|---|---|
EncodingMode |
EmbedFontInfo.getEncodingMode()
Returns the requested encoding mode for this font.
|
static EncodingMode |
EncodingMode.valueOf(String name)
Returns the
EncodingMode by name. |
| Modifier and Type | Method and Description |
|---|---|
static CustomFont |
FontLoader.loadFont(File fontFile,
String subFontName,
boolean embedded,
EncodingMode encodingMode,
FontResolver resolver)
Loads a custom font from a File.
|
static CustomFont |
FontLoader.loadFont(String fontFileURI,
String subFontName,
boolean embedded,
EncodingMode encodingMode,
boolean useKerning,
FontResolver resolver)
Loads a custom font from a URI.
|
static CustomFont |
FontLoader.loadFont(URL fontUrl,
String subFontName,
boolean embedded,
EncodingMode encodingMode,
FontResolver resolver)
Loads a custom font from an URL.
|
void |
EmbedFontInfo.setEncodingMode(EncodingMode mode)
Sets the requested encoding mode for this font.
|
| Constructor and Description |
|---|
TTFFontLoader(String fontFileURI,
String subFontName,
boolean embedded,
EncodingMode encodingMode,
boolean useKerning,
FontResolver resolver)
Additional constructor for TrueType Collections.
|
Copyright © 2007-2020. All Rights Reserved.