|
fop 0.94 | |||||||||
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
public class LazyFont
This class is used to defer the loading of a font until it is really used.
Constructor Summary | |
---|---|
LazyFont(EmbedFontInfo fontInfo,
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. |
java.lang.String |
toString()
String representation of LazyFont |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyFont(EmbedFontInfo fontInfo, 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 URIsMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Typeface getRealFont()
public java.lang.String getEncoding()
Typeface
getEncoding
in class Typeface
Typeface.getEncoding()
public char mapChar(char c)
Typeface
mapChar
in class Typeface
c
- character to map
Typeface.mapChar(char)
public boolean hasChar(char c)
Typeface
hasChar
in class Typeface
c
- character to check
Typeface.hasChar(char)
public boolean isMultiByte()
Typeface
isMultiByte
in class Typeface
Typeface.isMultiByte()
public java.lang.String getFontName()
FontMetrics
getFontName
in interface FontMetrics
FontMetrics.getFontName()
public int getMaxAscent(int size)
FontMetrics
getMaxAscent
in interface FontMetrics
getMaxAscent
in class Typeface
size
- font size
FontMetrics.getMaxAscent(int)
public int getAscender(int size)
FontMetrics
getAscender
in interface FontMetrics
size
- font size
FontMetrics.getAscender(int)
public int getCapHeight(int size)
FontMetrics
getCapHeight
in interface FontMetrics
size
- font size
FontMetrics.getCapHeight(int)
public int getDescender(int size)
FontMetrics
getDescender
in interface FontMetrics
size
- font size
FontMetrics.getDescender(int)
public int getXHeight(int size)
FontMetrics
getXHeight
in interface FontMetrics
size
- font size
FontMetrics.getXHeight(int)
public int getWidth(int i, int size)
FontMetrics
getWidth
in interface FontMetrics
i
- code point indexsize
- font size
FontMetrics.getWidth(int, int)
public int[] getWidths()
FontMetrics
This is used to get an array for inserting in an output format. It should not be used for lookup.
getWidths
in interface FontMetrics
FontMetrics.getWidths()
public boolean hasKerningInfo()
FontMetrics
hasKerningInfo
in interface FontMetrics
FontMetrics.hasKerningInfo()
public java.util.Map getKerningInfo()
FontMetrics
getKerningInfo
in interface FontMetrics
FontMetrics.getKerningInfo()
public int getCapHeight()
FontDescriptor
getCapHeight
in interface FontDescriptor
FontDescriptor.getCapHeight()
public int getDescender()
FontDescriptor
getDescender
in interface FontDescriptor
FontDescriptor.getDescender()
public int getAscender()
FontDescriptor
getAscender
in interface FontDescriptor
FontDescriptor.getAscender()
public int getFlags()
FontDescriptor
getFlags
in interface FontDescriptor
FontDescriptor.getFlags()
public int[] getFontBBox()
FontDescriptor
getFontBBox
in interface FontDescriptor
FontDescriptor.getFontBBox()
public int getItalicAngle()
FontDescriptor
getItalicAngle
in interface FontDescriptor
FontDescriptor.getItalicAngle()
public int getStemV()
FontDescriptor
getStemV
in interface FontDescriptor
FontDescriptor.getStemV()
public FontType getFontType()
FontMetrics
getFontType
in interface FontMetrics
FontMetrics.getFontType()
public boolean isEmbeddable()
FontDescriptor
isEmbeddable
in interface FontDescriptor
FontDescriptor.isEmbeddable()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |