org.apache.fop.render.pdf.fonts
Class LazyFont
java.lang.Object
|
+--org.apache.fop.render.pdf.Font
|
+--org.apache.fop.render.pdf.fonts.LazyFont
- All Implemented Interfaces:
- FontDescriptor, FontMetric
- public class LazyFont
- extends Font
- implements FontDescriptor
|
Constructor Summary |
LazyFont(java.net.URL fontEmbedPath,
java.net.URL metricsFile,
boolean useKerning)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyFont
public LazyFont(java.net.URL fontEmbedPath,
java.net.URL metricsFile,
boolean useKerning)
getRealFont
public Font getRealFont()
encoding
public java.lang.String encoding()
- Description copied from class:
Font
- get the encoding of the font
- Overrides:
encoding in class Font
fontName
public java.lang.String fontName()
- Description copied from class:
Font
- get the base font name
- Specified by:
fontName in interface FontDescriptor- Overrides:
fontName in class Font
getSubType
public byte getSubType()
- Description copied from class:
Font
- get the subtype of the font, default is TYPE1
- Specified by:
getSubType in interface FontDescriptor- Overrides:
getSubType in class Font
mapChar
public char mapChar(char c)
- Description copied from class:
Font
- map a Unicode character to a code point in the font
- Overrides:
mapChar in class Font
getAscender
public int getAscender(int size)
getCapHeight
public int getCapHeight(int size)
getDescender
public int getDescender(int size)
getXHeight
public int getXHeight(int size)
getFirstChar
public int getFirstChar()
getLastChar
public int getLastChar()
width
public int width(int i,
int size)
- Description copied from interface:
FontMetric
- return width (in 1/1000ths of point size) of character at
code point i
getWidths
public int[] getWidths(int size)
getCapHeight
public int getCapHeight()
- Specified by:
getCapHeight in interface FontDescriptor
getDescender
public int getDescender()
- Specified by:
getDescender in interface FontDescriptor
getAscender
public int getAscender()
- Specified by:
getAscender in interface FontDescriptor
getFlags
public int getFlags()
- Specified by:
getFlags in interface FontDescriptor
getFontBBox
public int[] getFontBBox()
- Specified by:
getFontBBox in interface FontDescriptor
getItalicAngle
public int getItalicAngle()
- Specified by:
getItalicAngle in interface FontDescriptor
getStemV
public int getStemV()
- Specified by:
getStemV in interface FontDescriptor
hasKerningInfo
public boolean hasKerningInfo()
- Specified by:
hasKerningInfo in interface FontDescriptor
getKerningInfo
public java.util.Map getKerningInfo()
- Specified by:
getKerningInfo in interface FontDescriptor
isEmbeddable
public boolean isEmbeddable()
- Specified by:
isEmbeddable in interface FontDescriptor
getFontFile
public PDFStream getFontFile(int objNum)
- Specified by:
getFontFile in interface FontDescriptor
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.