| Package | Description |
|---|---|
| org.docx4j.fonts | |
| org.docx4j.fonts.fop.fonts |
Classes for font handling.
|
| org.docx4j.fonts.fop.fonts.autodetect |
A collection of classes that aid in the autodetection of installed system fonts.
|
| org.docx4j.fonts.fop.fonts.truetype |
Classes for TrueType fonts.
|
| org.docx4j.fonts.fop.fonts.type1 |
Classes for Adobe Type 1 fonts.
|
| Modifier and Type | Field and Description |
|---|---|
protected FontResolver |
PhysicalFont.fontResolver |
| Modifier and Type | Field and Description |
|---|---|
protected FontResolver |
FontLoader.resolver
the FontResolver to use for font URI resolution
|
| Modifier and Type | Method and Description |
|---|---|
static FontResolver |
FontSetup.createMinimalFontResolver() |
static FontResolver |
FontManager.createMinimalFontResolver() |
| 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.
|
static InputStream |
FontLoader.openFontUri(FontResolver resolver,
String uri)
Opens a font URI and returns an input stream.
|
void |
FontReader.setResolver(FontResolver resolver)
Sets the font resolver.
|
void |
CustomFont.setResolver(FontResolver resolver)
Sets the font resolver.
|
static void |
FontSetup.setup(FontInfo fontInfo,
List embedFontInfoList,
FontResolver resolver)
Sets up the font info object.
|
| Constructor and Description |
|---|
CustomFontCollection(FontResolver fontResolver,
List customFonts)
Main constructor.
|
FontLoader(String fontFileURI,
boolean embedded,
boolean useKerning,
FontResolver resolver)
Default constructor.
|
LazyFont(EmbedFontInfo fontInfo,
FontResolver resolver)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
EmbedFontInfo[] |
FontInfoFinder.find(URL fontUrl,
FontResolver resolver,
FontCache fontCache)
Attempts to determine EmbedFontInfo from a given font file.
|
| 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.
|
| Constructor and Description |
|---|
Type1FontLoader(String fontFileURI,
boolean embedded,
boolean useKerning,
FontResolver resolver)
Constructs a new Type 1 font loader.
|
Copyright © 2007-2020. All Rights Reserved.