|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.vf.VfFont
public class VfFont
This class read a VF-file.
A VF file is organized as a stream of 8-bit bytes, using conventions borrowed from DVI and PK files. Thus, a device driver that knows about DVI and PK format will already contain most of the mechanisms necessary to process VF files. We shall assume that DVI format is understood; the conventions in the DVI documentation (see, for example, TeX: The Program, part 31) are adopted here to define VF format.
| Field Summary | |
|---|---|
static int |
UNITS_PER_EM_DEFAULT
units per em (default-value) |
| Constructor Summary | |
|---|---|
VfFont(java.lang.String fontname,
java.io.InputStream in,
TfmReader tfmreader)
Creates a new object. |
|
| Method Summary | |
|---|---|
VfCommandCharacterPackets |
getChar(int number)
Returns the char command or null, if not found. |
java.util.List<VfCommand> |
getCmds()
Getter for cmds. |
FixedDimen |
getDesignSize()
Returns the design size. |
TfmFixWord |
getDesignSizeAsFixWord()
Returns the design size as fix word. |
VfCommandFontDef |
getFont(int number)
Returns the font command or null, if not found. |
java.lang.String |
getFontname()
Getter for font name. |
java.util.Map<java.lang.Integer,VfCommandFontDef> |
getFonts()
Getter for fonts. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNITS_PER_EM_DEFAULT
| Constructor Detail |
|---|
public VfFont(java.lang.String fontname,
java.io.InputStream in,
TfmReader tfmreader)
throws FontException
fontname - The font name.in - The input.tfmreader - The tfm reader for the font.
FontException - if a font errror occurred.| Method Detail |
|---|
public VfCommandCharacterPackets getChar(int number)
null, if not found.
number - The number of the char.
public java.util.List<VfCommand> getCmds()
public FixedDimen getDesignSize()
TfmReader.getDesignSize()public TfmFixWord getDesignSizeAsFixWord()
TfmReader.getDesignSizeAsFixWord()public VfCommandFontDef getFont(int number)
null, if not found.
number - The number of the font.
public java.lang.String getFontname()
public java.util.Map<java.lang.Integer,VfCommandFontDef> getFonts()
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writeXML in interface XMLWriterConvertiblewriter - the XML-Writer
java.io.IOException - if an IO-error occurs.XMLWriterConvertible.writeXML(org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||