org.apache.fop.fonts
Interface MutableFont
- CIDFont, CustomFont, MultiByteFont, SingleByteFont
public interface MutableFont
This interface is used to set the values of a font during configuration time.
void | putKerningEntry(Integer key, Map value) - Adds an entry to the kerning table.
|
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 | setEmbedFileName(String path) - Sets the path to the embeddable font file.
|
void | setEmbedResourceName(String name) - Sets the resource name of the embeddable font file.
|
void | setFamilyNames(Set 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 | 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.
|
putKerningEntry
public void putKerningEntry(Integer key,
Map value)
Adds an entry to the kerning table.
key
- Kerning keyvalue
- Kerning value
setAscender
public void setAscender(int ascender)
Sets the ascent value.
setCapHeight
public void setCapHeight(int capHeight)
Sets the capital height value.
capHeight
- capital height
setDescender
public void setDescender(int descender)
Sets the descent value.
descender
- descent value
setEmbedFileName
public void setEmbedFileName(String path)
Sets the path to the embeddable font file.
setEmbedResourceName
public void setEmbedResourceName(String name)
Sets the resource name of the embeddable font file.
setFamilyNames
public void setFamilyNames(Set names)
Sets the font's family names (Example: "Helvetica").
names
- the font's family names (a Set of Strings)
setFirstChar
public void setFirstChar(int index)
Sets the index of the first character in the character table.
index
- index of first character
setFlags
public void setFlags(int flags)
Sets the font's flags
setFontBBox
public void setFontBBox(int[] bbox)
Sets the font's bounding box
setFontName
public void setFontName(String name)
Sets the "PostScript" font name (Example: "Helvetica-BoldOblique").
setFontType
public void setFontType(FontType fontType)
Sets the font type.
setFullName
public void setFullName(String name)
Sets the font's full name (usually the one that the operating system displays). Example:
"Helvetica Bold Oblique".
setItalicAngle
public void setItalicAngle(int italicAngle)
Sets the font's italic angle.
italicAngle
- italic angle
setKerningEnabled
public void setKerningEnabled(boolean enabled)
Enables/disabled kerning.
enabled
- True if kerning should be enabled if available
setLastChar
public void setLastChar(int index)
Sets the index of the last character in the character table.
index
- index of the last character
setMissingWidth
public void setMissingWidth(int width)
Sets the font's default width
setStemV
public void setStemV(int stemV)
Sets the font's StemV value.
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.