|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.AbstractXtfTable
org.extex.font.format.xtf.tables.TtfTablePOST
public class TtfTablePOST
The 'post' table contains information needed to use a TrueType font on a PostScript printer. It contains the data needed for the FontInfo dictionary entry as well as the PostScript names for all of the glyphs in the font. It also contains memory usage information needed by the PostScript driver for memory management.
| Type | Name | Description |
| Fixed | Format Type | 0x00010000 for format 1.0, 0x00020000 for format 2.0, and so on |
| Fixed | italicAngle | Italic angle in counter-clockwise degrees from the vertical. Zero for upright text, negative for text that leans to the right (forward) |
| FWord | underlinePosition | Suggested values for the underline position (negative values indicate below baseline). |
| FWord | underlineThickness | Suggested values for the underline thickness. |
| ULONG | isFixedPitch | Set to 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced). |
| ULONG | minMemType42 | Minimum memory usage when a TrueType font is downloaded. |
| ULONG | maxMemType42 | Maximum memory usage when a TrueType font is downloaded. |
| ULONG | minMemType1 | Minimum memory usage when a TrueType font is downloaded as a Type 1 font. |
| ULONG | maxMemType1 | Maximum memory usage when a TrueType font is downloaded as a Type 1 font. |
Format 2
| Type | Name | Description |
| uint16 | numberOfGlyphs | number of glyphs |
| uint16 | glyphNameIndex[numberOfGlyphs] | Ordinal number of this glyph in 'post' string tables.
This is not an offset. |
| Pascal string | names[numberNewGlyphs] | glyph names with length bytes [variable] (a Pascal string) |
Format 3
This version is used by OpenType fonts with TrueType or CFF data. The version makes it possible to create a special font that is not burdened with a large 'post' table set of glyph names.
This version specifies that no PostScript name information is provided for the glyphs in this font file. The printing behavior of this version on PostScript printers is unspecified, except that it should not result in a fatal or unrecoverable error. Some drivers may print nothing, other drivers may attempt to print using a default naming scheme.
| Field Summary | |
|---|---|
static int |
FORMAT1
Format 1. |
static int |
FORMAT2
Format 2. |
static int |
FORMAT25
Format 2.5. |
static int |
FORMAT3
Format 3. |
static int |
FORMAT4
Format 4. |
| Constructor Summary | |
|---|---|
TtfTablePOST(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
Create a new object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getGlyphName(int i)
Returns the glyph name. |
int[] |
getGlyphNameIndex()
Returns the glyphNameIndex. |
int |
getGlyphNamePosition(java.lang.String glypname)
Returns the position of a glpyhname or -1 if not found. |
int |
getGlyphValue(int id)
Returns the int-value for a glyph. |
int |
getIsFixedPitch()
Returns the isFixedPitch. |
int |
getItalicAngle()
Returns the italicAngle. |
int |
getMaxMemType1()
Returns the maxMemType1. |
int |
getMaxMemType42()
Returns the maxMemType42. |
int |
getMinMemType1()
Returns the minMemType1. |
int |
getMinMemType42()
Returns the minMemType42. |
int |
getNumGlyphs()
Returns the numGlyphs. |
java.lang.String[] |
getPsGlyphName()
Returns the psGlyphName. |
java.lang.String |
getShortcut()
Returns the table shortcut. |
int |
getType()
Get the table type, as a table directory value. |
short |
getUnderlinePosition()
Returns the underlinePosition. |
short |
getUnderlineThickness()
Returns the underlineThickness. |
int |
getVersion()
Returns the version. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class org.extex.font.format.xtf.tables.AbstractXtfTable |
|---|
getInitOrder, getTableMap, init, writeStartElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.extex.font.format.xtf.tables.XtfTable |
|---|
getInitOrder, getTableMap, init |
| Field Detail |
|---|
public static final int FORMAT1
public static final int FORMAT2
public static final int FORMAT25
public static final int FORMAT3
public static final int FORMAT4
| Constructor Detail |
|---|
public TtfTablePOST(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
throws java.io.IOException
tablemap - the tablemapde - directory entryrar - input
java.io.IOException - if an IO-error occured| Method Detail |
|---|
public java.lang.String getGlyphName(int i)
getGlyphName in interface XtfGlyphNamegetGlyphName in class AbstractXtfTablei - index
public int[] getGlyphNameIndex()
public int getGlyphNamePosition(java.lang.String glypname)
glypname - The glpyh name.
public int getGlyphValue(int id)
id - the id for the glyph
public int getIsFixedPitch()
public int getItalicAngle()
public int getMaxMemType1()
public int getMaxMemType42()
public int getMinMemType1()
public int getMinMemType42()
public int getNumGlyphs()
public java.lang.String[] getPsGlyphName()
public java.lang.String getShortcut()
getShortcut in interface XtfTableXtfTable.getShortcut()public int getType()
getType in interface XtfTablepublic short getUnderlinePosition()
public short getUnderlineThickness()
public int getVersion()
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 | |||||||||