|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.font.type.vf.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(RandomAccessR rar,
java.lang.String afontname,
FontFactory fontfac)
Create e new object. |
Method Summary | |
org.jdom.Element |
getFontMetric()
Return the FontMetrix-Element for this font. |
java.lang.String |
getFontname()
Returns the fontname. |
void |
toPL(PlWriter out)
Print all information (jn PL-format) to the writer. |
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(RandomAccessR rar, java.lang.String afontname, FontFactory fontfac) throws java.io.IOException, FontException, ConfigurationException
rar
- the inputafontname
- the fontnamefontfac
- the font factory
java.io.IOException
- if a IO-error occured
FontException
- if a error reading the font.
ConfigurationException
- from the config-system.Method Detail |
public java.lang.String getFontname()
public void writeXML(XMLStreamWriter writer) throws java.io.IOException
XMLWriterConvertible
writeXML
in interface XMLWriterConvertible
writer
- the XML-Writer
java.io.IOException
- if an IO-error occurs.XMLWriterConvertible.writeXML(de.dante.util.xml.XMLStreamWriter)
public void toPL(PlWriter out) throws java.io.IOException, FontException
PlFormat
toPL
in interface PlFormat
out
- the plwriter
java.io.IOException
- if an IO-error occurs.
FontException
- if a font-error occurs.PlFormat.toPL(
de.dante.extex.font.type.PlWriter)
public org.jdom.Element getFontMetric() throws FontException
FontMetric
getFontMetric
in interface FontMetric
FontException
- if a font-error occoursFontMetric.getFontMetric()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |