|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.tc.font.impl.NullFont
org.extex.typesetter.tc.font.impl.FontImpl
public class FontImpl
This class constitutes a wrapper for a font. Here all information is stored which should be saved in a format. Especially all modifiable fields have to be kept in this class.
The loadable and constant parts are delegated and should not make it into the format file. Thus it is necessary to reconstitute this contents when the format has to be provided by the loader.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The field serialVersionUID contains the version number for serialization. |
| Constructor Summary | |
|---|---|
FontImpl()
Create a new Object |
|
FontImpl(ExtexFont font)
Create a new Object |
|
| Method Summary | |
|---|---|
FontKey |
getActualFontKey()
Returns the actual FontKey for this font. |
FixedDimen |
getActualSize()
Returns the actual size. |
int |
getCheckSum()
Returns the check sum. |
FixedGlue |
getDepth(UnicodeChar uc)
Returns the depth of the char. |
FixedDimen |
getDesignSize()
Returns the design size. |
FixedDimen |
getEm()
Returns the size of 1em. |
FixedDimen |
getEx()
Returns the size of 1ex. |
FixedDimen |
getFontDimen(java.lang.String k)
Return font dimen size with a key. |
FontKey |
getFontKey()
Returns the key for the font. |
java.lang.String |
getFontName()
Returns the name of the font. |
ExtexFont |
getFount()
Getter for the font. |
FixedGlue |
getHeight(UnicodeChar uc)
Returns the height of the char. |
FixedDimen |
getItalicCorrection(UnicodeChar uc)
Returns the italic correction of the char. |
FixedDimen |
getKerning(UnicodeChar uc1,
UnicodeChar uc2)
Returns the kerning between two characters. |
UnicodeChar |
getLigature(UnicodeChar uc1,
UnicodeChar uc2)
Returns the ligature for two characters. |
FixedGlue |
getSpace()
Returns the size of the 'space'. |
FixedGlue |
getWidth(UnicodeChar uc)
Returns the width of a character. |
boolean |
hasGlyph(UnicodeChar uc)
Determine whether the glyph for a given character is present in this font. |
protected java.lang.Object |
readResolve()
Magic method for deserialization. |
void |
setFont(ExtexFont font)
Setter for the font. |
java.lang.String |
toString()
Return the printable representation for this instance. |
| Methods inherited from class org.extex.typesetter.tc.font.impl.NullFont |
|---|
getEfCode, getHyphenChar, getScaleFactor, getSkewChar, setEfCode, setFontDimen, setHyphenChar, setSkewChar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.extex.typesetter.tc.font.Font |
|---|
getEfCode, getHyphenChar, getScaleFactor, getSkewChar, setEfCode, setFontDimen, setHyphenChar, setSkewChar |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public FontImpl()
public FontImpl(ExtexFont font)
font - the font| Method Detail |
|---|
public FontKey getActualFontKey()
getActualFontKey in interface FontgetActualFontKey in class NullFontNullFont.getActualFontKey()public FixedDimen getActualSize()
getActualSize in interface FontgetActualSize in class NullFontFont.getActualSize()public int getCheckSum()
getCheckSum in interface FontgetCheckSum in class NullFontFont.getCheckSum()public FixedGlue getDepth(UnicodeChar uc)
getDepth in interface FontgetDepth in class NullFontuc - the Unicode char
Font.getDepth(
org.extex.core.UnicodeChar)public FixedDimen getDesignSize()
getDesignSize in interface FontgetDesignSize in class NullFontFont.getDesignSize()public FixedDimen getEm()
getEm in interface FontgetEm in class NullFontFont.getEm()public FixedDimen getEx()
getEx in interface FontgetEx in class NullFontFont.getEx()public FixedDimen getFontDimen(java.lang.String k)
getFontDimen in interface FontgetFontDimen in class NullFontk - the key
Font.getFontDimen(java.lang.String)public FontKey getFontKey()
getFontKey in interface FontgetFontKey in class NullFontFont.getFontKey()public java.lang.String getFontName()
getFontName in interface FontgetFontName in class NullFontFont.getFontName()public ExtexFont getFount()
public FixedGlue getHeight(UnicodeChar uc)
getHeight in interface FontgetHeight in class NullFontuc - the Unicode char
Font.getHeight(
org.extex.core.UnicodeChar)public FixedDimen getItalicCorrection(UnicodeChar uc)
getItalicCorrection in interface FontgetItalicCorrection in class NullFontuc - the char
Font.getItalicCorrection(
org.extex.core.UnicodeChar)
public FixedDimen getKerning(UnicodeChar uc1,
UnicodeChar uc2)
getKerning in interface FontgetKerning in class NullFontuc1 - the first characteruc2 - the second character
Font.getKerning(
org.extex.core.UnicodeChar,
org.extex.core.UnicodeChar)
public UnicodeChar getLigature(UnicodeChar uc1,
UnicodeChar uc2)
getLigature in interface FontgetLigature in class NullFontuc1 - the first characteruc2 - the second character
Font.getLigature(
org.extex.core.UnicodeChar,
org.extex.core.UnicodeChar)public FixedGlue getSpace()
getSpace in interface FontgetSpace in class NullFontFont.getSpace()public FixedGlue getWidth(UnicodeChar uc)
getWidth in interface FontgetWidth in class NullFontuc - the character
Font.getWidth(
org.extex.core.UnicodeChar)public boolean hasGlyph(UnicodeChar uc)
hasGlyph in interface FonthasGlyph in class NullFontuc - the character
true iff the glyph is presentFont.hasGlyph(
org.extex.core.UnicodeChar)
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - in case of an errorpublic void setFont(ExtexFont font)
setFont in interface ModifiableFontfont - the font to setModifiableFont.setFont(org.extex.font.ExtexFont)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||