|
||||||||||
| 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
public class NullFont
This class implements a dummy font which does not contain any characters.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The field serialVersionUID contains the version number for serialization. |
| Constructor Summary | |
|---|---|
NullFont()
Creates 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. |
long |
getEfCode(UnicodeChar uc)
Getter for the ef code. |
FixedDimen |
getEm()
Returns the size of 1em. |
FixedDimen |
getEx()
Returns the size of 1ex. |
FixedDimen |
getFontDimen(java.lang.String name)
Returns the size of the parameter with the name 'name'. |
FontKey |
getFontKey()
Returns the key for the font. |
java.lang.String |
getFontName()
Returns the name of the font. |
FixedGlue |
getHeight(UnicodeChar uc)
Returns the height of the char. |
UnicodeChar |
getHyphenChar()
Returns the hyphen char. |
FixedDimen |
getItalicCorrection(UnicodeChar uc)
Returns the italic correction of the char. |
FixedDimen |
getKerning(UnicodeChar uc1,
UnicodeChar uc2)
Returns the kerning between two chars. |
UnicodeChar |
getLigature(UnicodeChar uc1,
UnicodeChar uc2)
Returns the ligature for two chars. |
FixedCount |
getScaleFactor()
Returns the scale factor of the font. |
UnicodeChar |
getSkewChar()
Returns the skew character. |
FixedGlue |
getSpace()
Returns the size of the 'space'. |
FixedGlue |
getWidth(UnicodeChar uc)
Returns the width of the character. |
boolean |
hasGlyph(UnicodeChar uc)
Determine whether the glyph for a given character is present in this font. |
void |
setEfCode(UnicodeChar uc,
long code)
Setter for the ef code. |
void |
setFontDimen(java.lang.String name,
Dimen value)
Set the new value for the font parameter. |
void |
setHyphenChar(UnicodeChar uc)
Set the hyphen char. |
void |
setSkewChar(UnicodeChar uc)
Set the skew char. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public NullFont()
| Method Detail |
|---|
public FontKey getActualFontKey()
getActualFontKey in interface FontFont.getActualFontKey()public FixedDimen getActualSize()
getActualSize in interface FontFont.getActualSize()public int getCheckSum()
getCheckSum in interface FontFont.getCheckSum()public FixedGlue getDepth(UnicodeChar uc)
getDepth in interface Fontuc - the Unicode char
Font.getDepth(
org.extex.core.UnicodeChar)public FixedDimen getDesignSize()
getDesignSize in interface FontFont.getDesignSize()public long getEfCode(UnicodeChar uc)
getEfCode in interface Fontuc - the character
Font.getEfCode(
org.extex.core.UnicodeChar)public FixedDimen getEm()
getEm in interface FontFont.getEm()public FixedDimen getEx()
getEx in interface FontFont.getEx()public FixedDimen getFontDimen(java.lang.String name)
getFontDimen in interface Fontname - the name of the parameter
Font.getFontDimen(
java.lang.String)public FontKey getFontKey()
getFontKey in interface FontFont.getFontKey()public java.lang.String getFontName()
getFontName in interface FontFont.getFontName()public FixedGlue getHeight(UnicodeChar uc)
getHeight in interface Fontuc - the Unicode char
Font.getHeight(
org.extex.core.UnicodeChar)public UnicodeChar getHyphenChar()
getHyphenChar in interface FontFont.getHyphenChar()public FixedDimen getItalicCorrection(UnicodeChar uc)
getItalicCorrection in interface Fontuc - the char
Font.getItalicCorrection(
org.extex.core.UnicodeChar)
public FixedDimen getKerning(UnicodeChar uc1,
UnicodeChar uc2)
getKerning in interface Fontuc1 - the first charuc2 - the second char
Font.getKerning(
org.extex.core.UnicodeChar, org.extex.core.UnicodeChar)
public UnicodeChar getLigature(UnicodeChar uc1,
UnicodeChar uc2)
getLigature in interface Fontuc1 - the first charuc2 - the second char
Font.getLigature(
org.extex.core.UnicodeChar,
org.extex.core.UnicodeChar)public FixedCount getScaleFactor()
getScaleFactor in interface FontFont.getScaleFactor()public UnicodeChar getSkewChar()
getSkewChar in interface FontFont.getSkewChar()public FixedGlue getSpace()
getSpace in interface FontFont.getSpace()public FixedGlue getWidth(UnicodeChar uc)
getWidth in interface Fontuc - the character
Font.getWidth(
org.extex.core.UnicodeChar)public boolean hasGlyph(UnicodeChar uc)
hasGlyph in interface Fontuc - the character
true iff the glyph is presentFont.hasGlyph(
org.extex.core.UnicodeChar)
public void setEfCode(UnicodeChar uc,
long code)
setEfCode in interface Fontuc - the charactercode - the associated codeFont.setEfCode(
org.extex.core.UnicodeChar, long)
public void setFontDimen(java.lang.String name,
Dimen value)
setFontDimen in interface Fontname - the name of the parametervalue - the value to setFont.setFontDimen(
java.lang.String, org.extex.core.dimen.Dimen)public void setHyphenChar(UnicodeChar uc)
setHyphenChar in interface Fontuc - the hyphen charFont.setHyphenChar(
org.extex.core.UnicodeChar)public void setSkewChar(UnicodeChar uc)
setSkewChar in interface Fontuc - the skew charFont.setSkewChar(
org.extex.core.UnicodeChar)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||