|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.fonts.Typeface
org.apache.fop.fonts.CustomFont
Abstract base class for custom fonts loaded from files, for example.
| Constructor Summary | |
CustomFont()
|
|
| Method Summary | |
int |
getAscender()
Returns the ascender value of the font. (Ascent in pdf spec) |
int |
getAscender(int size)
Returns the ascent of the font described by this FontMetrics object. It returns the nominal ascent within the em box. |
int |
getCapHeight()
Returns the capital height of the font. |
int |
getCapHeight(int size)
Returns the size of a capital letter measured from the font's baseline. |
int |
getDescender()
Returns the descender value of the font. (Descent in pdf spec) |
int |
getDescender(int size)
Returns the descent of the font described by this FontMetrics object. |
java.lang.String |
getEmbedFileName()
Returns an URI representing an embeddable font file. |
javax.xml.transform.Source |
getEmbedFileSource()
Returns a Source representing an embeddable font file. |
java.lang.String |
getEmbedFontName()
Returns the font name for font embedding (may include a prefix, Example: "1E28bcArialMT"). |
java.lang.String |
getEmbedResourceName()
Returns the lookup name to an embeddable font file available as a resource. |
java.util.Set |
getFamilyNames()
Returns the font family names. |
int |
getFirstChar()
Returns the index of the first character defined in this font. |
int |
getFlags()
Returns the flags for the font. (See pdf spec) |
int[] |
getFontBBox()
Returns the font's bounding box. |
java.lang.String |
getFontName()
Returns the "PostScript" font name (Example: "Helvetica-BoldOblique"). |
java.lang.String |
getFontSubName()
Returns font's subfamily name. |
FontType |
getFontType()
Returns the type of the font. |
java.lang.String |
getFullName()
Returns the font's full name (Example: "Helvetica Bold Oblique"). |
int |
getItalicAngle()
Returns the italic angle for the font. |
java.util.Map |
getKerningInfo()
Returns the kerning map for the font. |
int |
getLastChar()
Returns the index of the last character defined in this font. |
int |
getMissingWidth()
Returns the width to be used when no width is available. |
int |
getStemV()
Returns the vertical stem width for the font. |
java.lang.String |
getStrippedFontName()
Returns the font family name stripped of whitespace. |
int |
getWeight()
Returns the font weight (100, 200...800, 900). |
int |
getXHeight(int size)
Determines the typical font height of this FontMetrics object |
boolean |
hasKerningInfo()
Indicates if the font has kering information. |
boolean |
isKerningEnabled()
Used to determine if kerning is enabled. |
boolean |
isSymbolicFont()
Indicates whether the font is a symbolic font. |
void |
putKerningEntry(java.lang.Integer key,
java.util.Map value)
Adds an entry to the kerning table. |
void |
replaceKerningMap(java.util.Map kerningMap)
Replaces the existing kerning map with a new one. |
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(java.lang.String path)
Sets the path to the embeddable font file. |
void |
setEmbedResourceName(java.lang.String name)
Sets the resource name of the embeddable font file. |
void |
setFamilyNames(java.util.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(java.lang.String name)
Sets the "PostScript" font name (Example: "Helvetica-BoldOblique"). |
void |
setFontSubFamilyName(java.lang.String subFamilyName)
Sets the font's subfamily name. |
void |
setFontType(FontType fontType)
Sets the font type. |
void |
setFullName(java.lang.String name)
Sets the font's full name (usually the one that the operating system displays). Example: "Helvetica Bold Oblique". |
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 |
setResolver(FontResolver resolver)
Sets the font resolver. |
void |
setStemV(int stemV)
Sets the font's StemV value. |
void |
setWeight(int weight)
Sets the font weight. |
void |
setXHeight(int xHeight)
Returns the XHeight value of the font. |
| Methods inherited from class org.apache.fop.fonts.Typeface |
getEncoding, getMaxAscent, hadMappingOperations, hasChar, isMultiByte, mapChar, notifyMapOperation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.fop.fonts.FontDescriptor |
isEmbeddable |
| Methods inherited from interface org.apache.fop.fonts.FontMetrics |
getMaxAscent, getWidth, getWidths |
| Constructor Detail |
public CustomFont()
| Method Detail |
public java.lang.String getFontName()
getFontName in interface FontMetricspublic java.lang.String getEmbedFontName()
getEmbedFontName in interface FontMetricspublic java.lang.String getFullName()
getFullName in interface FontMetricspublic java.util.Set getFamilyNames()
getFamilyNames in interface FontMetricspublic java.lang.String getStrippedFontName()
FontUtil.stripWhiteSpace(String)public java.lang.String getFontSubName()
public java.lang.String getEmbedFileName()
public javax.xml.transform.Source getEmbedFileSource()
throws java.io.IOException
java.io.IOException - if embedFileName is not null but Source is not foundpublic java.lang.String getEmbedResourceName()
public int getAscender()
getAscender in interface FontDescriptorpublic int getDescender()
getDescender in interface FontDescriptorpublic int getCapHeight()
getCapHeight in interface FontDescriptorpublic int getAscender(int size)
getAscender in interface FontMetricssize - font size
public int getDescender(int size)
getDescender in interface FontMetricssize - font size
public int getCapHeight(int size)
getCapHeight in interface FontMetricssize - font size
public int getXHeight(int size)
getXHeight in interface FontMetricssize - font size
public int[] getFontBBox()
getFontBBox in interface FontDescriptorpublic int getFlags()
getFlags in interface FontDescriptorpublic boolean isSymbolicFont()
isSymbolicFont in interface FontDescriptorpublic int getWeight()
public int getStemV()
getStemV in interface FontDescriptorpublic int getItalicAngle()
getItalicAngle in interface FontDescriptorpublic int getMissingWidth()
public FontType getFontType()
getFontType in interface FontMetricspublic int getFirstChar()
public int getLastChar()
public boolean isKerningEnabled()
public final boolean hasKerningInfo()
hasKerningInfo in interface FontMetricspublic final java.util.Map getKerningInfo()
getKerningInfo in interface FontMetricspublic void setFontName(java.lang.String name)
setFontName in interface MutableFontname - font namepublic void setFullName(java.lang.String name)
setFullName in interface MutableFontname - font' full namepublic void setFamilyNames(java.util.Set names)
setFamilyNames in interface MutableFontnames - the font's family names (a Set of Strings)public void setFontSubFamilyName(java.lang.String subFamilyName)
subFamilyName - the subfamily name of the fontpublic void setEmbedFileName(java.lang.String path)
setEmbedFileName in interface MutableFontpath - URI to the filepublic void setEmbedResourceName(java.lang.String name)
setEmbedResourceName in interface MutableFontname - resource namepublic void setCapHeight(int capHeight)
setCapHeight in interface MutableFontcapHeight - capital heightpublic void setXHeight(int xHeight)
xHeight - the XHeight valuepublic void setAscender(int ascender)
setAscender in interface MutableFontascender - ascent heightpublic void setDescender(int descender)
setDescender in interface MutableFontdescender - descent valuepublic void setFontBBox(int[] bbox)
setFontBBox in interface MutableFontbbox - bounding boxpublic void setFlags(int flags)
setFlags in interface MutableFontflags - flagspublic void setWeight(int weight)
weight - the font weightpublic void setStemV(int stemV)
setStemV in interface MutableFontstemV - StemVpublic void setItalicAngle(int italicAngle)
setItalicAngle in interface MutableFontitalicAngle - italic anglepublic void setMissingWidth(int width)
setMissingWidth in interface MutableFontwidth - default widthpublic void setFontType(FontType fontType)
setFontType in interface MutableFontfontType - font typepublic void setFirstChar(int index)
setFirstChar in interface MutableFontindex - index of first characterpublic void setLastChar(int index)
setLastChar in interface MutableFontindex - index of the last characterpublic void setKerningEnabled(boolean enabled)
setKerningEnabled in interface MutableFontenabled - True if kerning should be enabled if availablepublic void setResolver(FontResolver resolver)
resolver - the font resolver
public void putKerningEntry(java.lang.Integer key,
java.util.Map value)
putKerningEntry in interface MutableFontkey - Kerning keyvalue - Kerning valuepublic void replaceKerningMap(java.util.Map kerningMap)
kerningMap - the kerning map (Map
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||