public interface MutableFont
Modifier and Type | Method and Description |
---|---|
void |
putKerningEntry(Integer key,
Map<Integer,Integer> value)
Adds an entry to the kerning table.
|
void |
setAdvancedEnabled(boolean enabled)
Enables/disabled advanced typographic features.
|
void |
setAscender(int ascender)
Sets the ascent value.
|
void |
setCapHeight(int capHeight)
Sets the capital height value.
|
void |
setDescender(int descender)
Sets the descent value.
|
void |
setEmbeddingMode(EmbeddingMode embeddingMode)
Sets the embedding mode.
|
void |
setEmbedResourceName(String name)
Sets the resource name of the embeddable font file.
|
void |
setEmbedURI(URI path)
Sets the URI to the embeddable font.
|
void |
setFamilyNames(Set<String> names)
Sets the font's family names (Example: "Helvetica").
|
void |
setFirstChar(int index)
Sets the index of the first character in the character table.
|
void |
setFlags(int flags)
Sets the font's flags
|
void |
setFontBBox(int[] bbox)
Sets the font's bounding box
|
void |
setFontName(String name)
Sets the "PostScript" font name (Example: "Helvetica-BoldOblique").
|
void |
setFontType(FontType fontType)
Sets the font type.
|
void |
setFontURI(URI uri)
Sets the URI from which this font is or will be loaded.
|
void |
setFullName(String name)
Sets the font's full name (usually the one that the operating system displays).
|
void |
setItalicAngle(int italicAngle)
Sets the font's italic angle.
|
void |
setKerningEnabled(boolean enabled)
Enables/disabled kerning.
|
void |
setLastChar(int index)
Sets the index of the last character in the character table.
|
void |
setMissingWidth(int width)
Sets the font's default width
|
void |
setStemV(int stemV)
Sets the font's StemV value.
|
void setFontURI(URI uri)
uri
- URI from which font is or will be loadedvoid setFontName(String name)
name
- font namevoid setFullName(String name)
name
- font' full namevoid setFamilyNames(Set<String> names)
names
- the font's family names (a Set of Strings)void setEmbedURI(URI path)
path
- URI to the fontvoid setEmbedResourceName(String name)
name
- resource namevoid setEmbeddingMode(EmbeddingMode embeddingMode)
embeddingMode
- the embedding modevoid setCapHeight(int capHeight)
capHeight
- capital heightvoid setAscender(int ascender)
ascender
- ascent heightvoid setDescender(int descender)
descender
- descent valuevoid setFontBBox(int[] bbox)
bbox
- bounding boxvoid setFlags(int flags)
flags
- flagsvoid setStemV(int stemV)
stemV
- StemVvoid setItalicAngle(int italicAngle)
italicAngle
- italic anglevoid setMissingWidth(int width)
width
- default widthvoid setFontType(FontType fontType)
fontType
- font typevoid setFirstChar(int index)
index
- index of first charactervoid setLastChar(int index)
index
- index of the last charactervoid setKerningEnabled(boolean enabled)
enabled
- True if kerning should be enabled if availablevoid setAdvancedEnabled(boolean enabled)
enabled
- true if advanced typographic features should be enabled if availableCopyright © 2025 Apache Software Foundation. All rights reserved.