public class TTFont
extends java.lang.Object
This class is under construction and not meant for a complete TT implementation.
Modifier and Type | Field and Description |
---|---|
static int |
ARG_1_AND_2_ARE_WORDS |
static int |
MORE_COMPONENTS |
static int |
SFNT_TRUETYPE |
static byte[] |
TABLE_CMAP |
static byte[] |
TABLE_CVT |
static byte[] |
TABLE_FGPM |
static byte[] |
TABLE_GLYF |
static byte[] |
TABLE_HEAD |
static byte[] |
TABLE_HHEA |
static byte[] |
TABLE_HMTX |
static byte[] |
TABLE_LOCA |
static byte[] |
TABLE_MAXP |
static byte[] |
TABLE_NAME |
static byte[] |
TABLE_OS2 |
static byte[] |
TABLE_POST |
static byte[] |
TABLE_PREP |
static int |
WE_HAVE_A_SCALE |
static int |
WE_HAVE_A_TWO_BY_TWO |
static int |
WE_HAVE_AN_X_AND_Y_SCALE |
Modifier | Constructor and Description |
---|---|
protected |
TTFont()
Create an empty true type font.
|
Modifier and Type | Method and Description |
---|---|
static int |
align(int newLength) |
static TTFont |
createFromLocator(de.intarsys.tools.locator.ILocator locator) |
java.util.Map |
getCMaps() |
java.util.Map |
getCMapsAt(int platformID,
int platformSpecificID) |
java.lang.String |
getFontFamilyName() |
TTFontHeader |
getFontHeader() |
java.lang.String |
getFontName() |
FontStyle |
getFontStyle() |
int |
getGlyphWidth(int codePoint) |
protected int[] |
getGlyphWidths() |
TTHorizontalHeader |
getHorizontalHeader() |
de.intarsys.tools.locator.ILocator |
getLocator() |
TTMetrics |
getMetrics() |
TTNaming |
getNaming() |
TTPostScriptInformation |
getPostScriptInformation() |
java.lang.String |
getPsName() |
int |
getSfntVersion() |
TTTable |
getTable(byte[] name) |
TTTable[] |
getTables() |
protected void |
initializeFromLocator() |
void |
removeCMapsAt(int platformID,
int platformSpecificID) |
protected void |
setFontFamilyName(java.lang.String string) |
protected void |
setFontName(TTFont font) |
protected void |
setFontStyle(FontStyle fontStyle) |
protected void |
setLocator(de.intarsys.tools.locator.ILocator locator) |
void |
setPsName(java.lang.String string) |
protected void |
setSfntVersion(int sfntVersion) |
protected void |
setTables(TTTable[] tables) |
public static final int ARG_1_AND_2_ARE_WORDS
public static final int MORE_COMPONENTS
public static final int SFNT_TRUETYPE
public static final byte[] TABLE_CMAP
public static final byte[] TABLE_CVT
public static final byte[] TABLE_FGPM
public static final byte[] TABLE_GLYF
public static final byte[] TABLE_HEAD
public static final byte[] TABLE_HHEA
public static final byte[] TABLE_HMTX
public static final byte[] TABLE_LOCA
public static final byte[] TABLE_MAXP
public static final byte[] TABLE_NAME
public static final byte[] TABLE_OS2
public static final byte[] TABLE_POST
public static final byte[] TABLE_PREP
public static final int WE_HAVE_A_SCALE
public static final int WE_HAVE_A_TWO_BY_TWO
public static final int WE_HAVE_AN_X_AND_Y_SCALE
public static int align(int newLength)
public static TTFont createFromLocator(de.intarsys.tools.locator.ILocator locator) throws java.io.IOException
java.io.IOException
public java.util.Map getCMaps() throws TrueTypeException
TrueTypeException
public java.util.Map getCMapsAt(int platformID, int platformSpecificID) throws TrueTypeException
TrueTypeException
public java.lang.String getFontFamilyName()
public TTFontHeader getFontHeader() throws TrueTypeException
TrueTypeException
public java.lang.String getFontName()
public FontStyle getFontStyle()
public int getGlyphWidth(int codePoint) throws TrueTypeException
TrueTypeException
protected int[] getGlyphWidths() throws TrueTypeException
TrueTypeException
public TTHorizontalHeader getHorizontalHeader() throws TrueTypeException
TrueTypeException
public de.intarsys.tools.locator.ILocator getLocator()
public TTMetrics getMetrics() throws TrueTypeException
TrueTypeException
public TTNaming getNaming() throws TrueTypeException
TrueTypeException
public TTPostScriptInformation getPostScriptInformation() throws TrueTypeException
TrueTypeException
public java.lang.String getPsName()
public int getSfntVersion()
public TTTable getTable(byte[] name)
public TTTable[] getTables()
protected void initializeFromLocator() throws java.io.IOException
java.io.IOException
public void removeCMapsAt(int platformID, int platformSpecificID) throws TrueTypeException, java.io.IOException
TrueTypeException
java.io.IOException
protected void setFontFamilyName(java.lang.String string)
protected void setFontName(TTFont font) throws TrueTypeException
TrueTypeException
protected void setFontStyle(FontStyle fontStyle)
protected void setLocator(de.intarsys.tools.locator.ILocator locator)
public void setPsName(java.lang.String string)
protected void setSfntVersion(int sfntVersion)
protected void setTables(TTTable[] tables)