| Package | Description |
|---|---|
| org.docx4j.fonts.fop.fonts |
Classes for font handling.
|
| org.docx4j.fonts.fop.fonts.substitute |
Font substitution facilities.
|
| Modifier and Type | Field and Description |
|---|---|
static FontTriplet |
Font.DEFAULT_FONT
Default fallback key
|
static FontTriplet |
FontTriplet.DEFAULT_FONT_TRIPLET |
| Modifier and Type | Method and Description |
|---|---|
static FontTriplet |
FontInfo.createFontKey(java.lang.String family,
java.lang.String style,
int weight)
Creates a key from the given strings.
|
FontTriplet |
FontInfo.findAdjustWeight(java.lang.String family,
java.lang.String style,
int weight)
Find a font with a given family and style by trying
different font weights according to the spec.
|
FontTriplet[] |
FontInfo.fontLookup(java.lang.String[] families,
java.lang.String style,
int weight)
Looks up a set of fonts.
|
FontTriplet |
FontInfo.fontLookup(java.lang.String family,
java.lang.String style,
int weight)
Lookup a font.
|
FontTriplet |
Font.getFontTriplet() |
FontTriplet |
FontInfo.getTripletFor(java.lang.String fontName)
Returns the first triplet matching the given font name.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FontTriplet> |
EmbedFontInfo.getFontTriplets()
Returns the list of font triplets associated with this font.
|
java.util.Map<FontTriplet,java.lang.String> |
FontInfo.getFontTriplets()
Gets a Map of all registered font triplets.
|
java.util.List<FontTriplet> |
DefaultFontConfig.Font.getTripletList() |
java.util.List<FontTriplet> |
FontInfo.getTripletsFor(java.lang.String fontName)
Returns all font triplet matching the given font name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FontInfo.addFontProperties(java.lang.String internalFontKey,
FontTriplet triplet)
Adds a new font triplet.
|
int |
FontTriplet.compareTo(FontTriplet o) |
void |
FontEventAdapter.fontSubstituted(java.lang.Object source,
FontTriplet requested,
FontTriplet effective)
Notifies about a font being substituted as the requested one isn't available.
|
void |
FontEventListener.fontSubstituted(java.lang.Object source,
FontTriplet requested,
FontTriplet effective)
Notifies about a font being substituted as the requested one isn't available.
|
void |
FontEventProducer.fontSubstituted(java.lang.Object source,
FontTriplet requested,
FontTriplet effective)
Notifies about a font being substituted as the requested one isn't available.
|
Font |
FontInfo.getFontInstance(FontTriplet triplet,
int fontSize)
Retrieves a (possibly cached) Font instance based on a FontTriplet and a font size.
|
java.lang.String |
FontInfo.getInternalFontKey(FontTriplet triplet)
Returns the internal font key (F1, F2, F3 etc.) for a given triplet.
|
boolean |
FontTriplet.Matcher.matches(FontTriplet triplet)
Indicates whether the given
FontTriplet matches a particular criterium. |
| Constructor and Description |
|---|
Font(java.lang.String key,
FontTriplet triplet,
FontMetrics met,
int fontSize)
Main constructor
|
| Constructor and Description |
|---|
EmbedFontInfo(FontUris fontUris,
boolean kerning,
boolean advanced,
java.util.List<FontTriplet> fontTriplets,
java.lang.String subFontName)
Main constructor
|
EmbedFontInfo(FontUris fontUris,
boolean kerning,
boolean advanced,
java.util.List<FontTriplet> fontTriplets,
java.lang.String subFontName,
EncodingMode encodingMode,
EmbeddingMode embeddingMode,
boolean simulateStyle,
boolean embedAsType1)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected FontTriplet |
FontQualifier.bestMatch(FontInfo fontInfo)
Returns the highest priority matching font triplet found in a given font info
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FontTriplet> |
FontQualifier.getTriplets() |
protected java.util.List<FontTriplet> |
FontQualifier.match(FontInfo fontInfo)
Returns a list of matching font triplet found in a given font info
|
Copyright © 2007–2023. All rights reserved.