|
fop 0.93 | ||||||||||
| 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.LazyFont
This class is used to defer the loading of a font until it is really used.
| Constructor Summary | |
LazyFont(java.lang.String fontEmbedPath,
java.lang.String metricsFileName,
boolean useKerning,
FontResolver resolver)
Main constructor |
|
| Method Summary | |
int |
getAscender()
Returns the ascender value of the font. |
int |
getAscender(int size)
Returns the ascent of the font described by this FontMetrics object. |
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. |
int |
getDescender(int size)
Returns the descent of the font described by this FontMetrics object. |
java.lang.String |
getEncoding()
Get the encoding of the font. |
int |
getFlags()
Returns the flags for the font. |
int[] |
getFontBBox()
Returns the font's bounding box. |
java.lang.String |
getFontName()
Returns the font name. |
FontType |
getFontType()
Returns the type of the font. |
int |
getItalicAngle()
Returns the italic angle for the font. |
java.util.Map |
getKerningInfo()
Returns the kerning map for the font. |
int |
getMaxAscent(int size)
Returns the maximum ascent of the font described by this FontMetrics object. |
Typeface |
getRealFont()
Gets the real font. |
int |
getStemV()
Returns the vertical stem width for the font. |
int |
getWidth(int i,
int size)
Return the width (in 1/1000ths of point size) of the character at code point i. |
int[] |
getWidths()
Return the array of widths. |
int |
getXHeight(int size)
Determines the typical font height of this FontMetrics object |
boolean |
hasChar(char c)
Determines whether this font contains a particular character/glyph. |
boolean |
hasKerningInfo()
Indicates if the font has kering information. |
boolean |
isEmbeddable()
Indicates if this font may be embedded. |
boolean |
isMultiByte()
Determines whether the font is a multibyte font. |
char |
mapChar(char c)
Map a Unicode character to a code point in the font. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LazyFont(java.lang.String fontEmbedPath,
java.lang.String metricsFileName,
boolean useKerning,
FontResolver resolver)
fontEmbedPath - path to embeddable file (may be null)metricsFileName - path to the metrics XML fileuseKerning - True, if kerning should be enabledresolver - the font resolver to handle font URIs| Method Detail |
public Typeface getRealFont()
public java.lang.String getEncoding()
Typeface
getEncoding in class TypefaceTypeface.getEncoding()public char mapChar(char c)
Typeface
mapChar in class Typefacec - character to map
Typeface.mapChar(char)public boolean hasChar(char c)
Typeface
hasChar in class Typefacec - character to check
Typeface.hasChar(char)public boolean isMultiByte()
Typeface
isMultiByte in class TypefaceTypeface.isMultiByte()public java.lang.String getFontName()
FontMetrics
getFontName in interface FontMetricsFontMetrics.getFontName()public int getMaxAscent(int size)
FontMetrics
getMaxAscent in interface FontMetricsgetMaxAscent in class TypefaceFontMetrics.getMaxAscent(int)public int getAscender(int size)
FontMetrics
getAscender in interface FontMetricssize - font size
FontMetrics.getAscender(int)public int getCapHeight(int size)
FontMetrics
getCapHeight in interface FontMetricssize - font size
FontMetrics.getCapHeight(int)public int getDescender(int size)
FontMetrics
getDescender in interface FontMetricssize - font size
FontMetrics.getDescender(int)public int getXHeight(int size)
FontMetrics
getXHeight in interface FontMetricssize - font size
FontMetrics.getXHeight(int)
public int getWidth(int i,
int size)
FontMetrics
getWidth in interface FontMetricsi - code point indexsize - font size
FontMetrics.getWidth(int, int)public int[] getWidths()
FontMetricsThis is used to get an array for inserting in an output format. It should not be used for lookup.
getWidths in interface FontMetricsFontMetrics.getWidths()public boolean hasKerningInfo()
FontMetrics
hasKerningInfo in interface FontMetricsFontMetrics.hasKerningInfo()public java.util.Map getKerningInfo()
FontMetrics
getKerningInfo in interface FontMetricsFontMetrics.getKerningInfo()public int getCapHeight()
FontDescriptor
getCapHeight in interface FontDescriptorFontDescriptor.getCapHeight()public int getDescender()
FontDescriptor
getDescender in interface FontDescriptorFontDescriptor.getDescender()public int getAscender()
FontDescriptor
getAscender in interface FontDescriptorFontDescriptor.getAscender()public int getFlags()
FontDescriptor
getFlags in interface FontDescriptorFontDescriptor.getFlags()public int[] getFontBBox()
FontDescriptor
getFontBBox in interface FontDescriptorFontDescriptor.getFontBBox()public int getItalicAngle()
FontDescriptor
getItalicAngle in interface FontDescriptorFontDescriptor.getItalicAngle()public int getStemV()
FontDescriptor
getStemV in interface FontDescriptorFontDescriptor.getStemV()public FontType getFontType()
FontMetrics
getFontType in interface FontMetricsFontMetrics.getFontType()public boolean isEmbeddable()
FontDescriptor
isEmbeddable in interface FontDescriptorFontDescriptor.isEmbeddable()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||