public static class AFPFontConfig.AFPTrueTypeFont extends OutlineFont implements Substitutable
charSeteventListener, NOT_FOUND| Constructor and Description |
|---|
AFPTrueTypeFont(String name,
boolean embeddable,
CharacterSet charSet,
AFPEventProducer eventProducer,
String ttc,
URI uri,
boolean positionByChar,
LazyFont lazyFont) |
| Modifier and Type | Method and Description |
|---|---|
CMapSegment[] |
getCMap() |
FontType |
getFontType()
Returns the type of the font.
|
String |
getTTC() |
URI |
getUri() |
boolean |
hasPrivateUseSubstitutions() |
boolean |
isPositionByChar() |
boolean |
performsSubstitution()
Determines if font performs glyph substitution.
|
CharSequence |
performSubstitution(CharSequence cs,
String script,
String language,
List associations,
boolean retainControls)
Perform substitutions on characters to effect glyph substitution.
|
CharSequence |
reorderCombiningMarks(CharSequence cs,
int[][] gpa,
String script,
String language,
List associations)
Reorder combining marks in character sequence so that they precede (within the sequence) the base
character to which they are applied.
|
getBoundingBox, getWidthgetAscender, getCapHeight, getCharacterSet, getCharacterSet, getDescender, getEncodingName, getUnderlinePosition, getUnderlineThickness, getXHeight, hasChar, mapChargetEmbedFontName, getFamilyNames, getFontName, getFontURI, getFullName, getKerningInfo, getStrikeoutPosition, getStrikeoutThickness, getWidths, hasKerningInfo, isEmbeddable, toString, toUnicodeCodepointgetMaxAscent, hadMappingOperations, hasFeature, isCID, isMultiByte, notifyMapOperation, setEventListener, warnMissingGlyphpublic AFPTrueTypeFont(String name, boolean embeddable, CharacterSet charSet, AFPEventProducer eventProducer, String ttc, URI uri, boolean positionByChar, LazyFont lazyFont)
public FontType getFontType()
AFPFontgetFontType in interface FontMetricsgetFontType in class AFPFontpublic String getTTC()
public URI getUri()
public boolean isPositionByChar()
public CMapSegment[] getCMap()
public boolean hasPrivateUseSubstitutions()
public boolean performsSubstitution()
SubstitutableperformsSubstitution in interface Substitutablepublic CharSequence performSubstitution(CharSequence cs, String script, String language, List associations, boolean retainControls)
SubstitutableperformSubstitution in interface Substitutablecs - character sequence to map to output font encoding character sequencescript - a script identifierlanguage - a language identifierassociations - optional list to receive list of character associationsretainControls - if true, then retain control characters and their glyph mappings, otherwise removepublic CharSequence reorderCombiningMarks(CharSequence cs, int[][] gpa, String script, String language, List associations)
SubstitutablereorderCombiningMarks in interface Substitutablecs - character sequence within which combining marks to be reorderedgpa - associated glyph position adjustments (also reordered)script - a script identifierlanguage - a language identifierassociations - optional list of associations to be reorderedCopyright © 2026 Apache Software Foundation. All rights reserved.