|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.font.type.other.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 | |
FixedDimen |
getActualSize()
Returns the actual size. |
BoundingBox |
getBoundingBox()
Returns the BoundingBox. |
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()
Return the em size of the font. |
FixedDimen |
getEx()
Return the ex size of the font. |
FontByteArray |
getFontByteArray()
Returns the byte array for the external file e.g. |
FixedDimen |
getFontDimen(java.lang.String key)
Return font dimen size with a key. |
FountKey |
getFontKey()
Returns the key for the font. |
java.lang.String |
getFontName()
Return the font name. |
Glyph |
getGlyph(UnicodeChar c)
Return the Glyph of a UnicodeChar , or
null, if the character is not defined. |
FixedGlue |
getHeight(UnicodeChar uc)
Returns the height of the char. |
UnicodeChar |
getHyphenChar()
Return the hyphenation character. |
FixedDimen |
getItalicCorrection(UnicodeChar uc)
Returns the italic correction of the char. |
FixedDimen |
getKerning(UnicodeChar uc1,
UnicodeChar uc2)
Returns the kerning between two chars. |
FixedGlue |
getLetterSpacing()
Return the letter spacing |
UnicodeChar |
getLigature(UnicodeChar uc1,
UnicodeChar uc2)
Returns the ligature for two chars. |
java.lang.String |
getProperty(java.lang.String key)
Return the font-property |
UnicodeChar |
getSkewChar()
Return the skew character |
FixedGlue |
getSpace()
Return the width of space character. |
FixedGlue |
getWidth(UnicodeChar uc)
Returns the width of the char. |
boolean |
hasGlyph(UnicodeChar uc)
Determine whether the glyph for a given character is present in this font. |
boolean |
isVirtualFont()
|
void |
setEfcode(UnicodeChar uc,
long code)
Setter for the ef code. |
void |
setFontDimen(java.lang.String key,
Dimen value)
Setter for the font dimen register. |
void |
setHyphenChar(UnicodeChar ahyphen)
Set the char for hyphenation. |
void |
setSkewChar(UnicodeChar askew)
Set the skew character. |
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 FixedDimen getActualSize()
Fount
getActualSize
in interface Fount
Fount.getActualSize()
public BoundingBox getBoundingBox()
Fount
getBoundingBox
in interface Fount
null
, if it does not existsFount.getBoundingBox()
public int getCheckSum()
Fount
getCheckSum
in interface Fount
Fount.getCheckSum()
public FixedGlue getDepth(UnicodeChar uc)
Font
getDepth
in interface Font
uc
- the Unicode char
Font.getDepth(
de.dante.util.UnicodeChar)
public FixedDimen getDesignSize()
Fount
getDesignSize
in interface Fount
Fount.getDesignSize()
public long getEfcode(UnicodeChar uc)
Font
getEfcode
in interface Font
uc
- the character
de.dante.extex.interpreter.type.font.Font#getEfcode()
public FixedDimen getEm()
Fount
getEm
in interface Fount
Fount.getEm()
public FixedDimen getEx()
Fount
getEx
in interface Fount
Fount.getEx()
public FontByteArray getFontByteArray()
Fount
getFontByteArray
in interface Fount
Fount.getFontByteArray()
public FixedDimen getFontDimen(java.lang.String key)
Fount
getFontDimen
in interface Fount
key
- the key
Fount.getFontDimen(
java.lang.String)
public FountKey getFontKey()
Fount
getFontKey
in interface Fount
Fount.getFontKey()
public java.lang.String getFontName()
Fount
getFontName
in interface Fount
Fount.getFontName()
public Glyph getGlyph(UnicodeChar c)
Font
UnicodeChar
, or
null, if the character is not defined.
getGlyph
in interface Font
c
- the Unicode char
Font.getGlyph(
de.dante.util.UnicodeChar)
public FixedGlue getHeight(UnicodeChar uc)
Font
getHeight
in interface Font
uc
- the Unicode char
Font.getHeight(
de.dante.util.UnicodeChar)
public UnicodeChar getHyphenChar()
Font
getHyphenChar
in interface Font
Font.getHyphenChar()
public FixedDimen getItalicCorrection(UnicodeChar uc)
Font
getItalicCorrection
in interface Font
uc
- the Unicode char
Font.getItalicCorrection(
de.dante.util.UnicodeChar)
public FixedDimen getKerning(UnicodeChar uc1, UnicodeChar uc2)
Font
getKerning
in interface Font
uc1
- the Unicode char (first one)uc2
- the Unicode char (second one)
Font.getKerning(
de.dante.util.UnicodeChar, de.dante.util.UnicodeChar)
public FixedGlue getLetterSpacing()
Fount
getLetterSpacing
in interface Fount
Fount.getLetterSpacing()
public UnicodeChar getLigature(UnicodeChar uc1, UnicodeChar uc2)
Font
getLigature
in interface Font
uc1
- the Unicode char (first one)uc2
- the Unicode char (second one)
Font.getLigature(
de.dante.util.UnicodeChar,
de.dante.util.UnicodeChar)
public java.lang.String getProperty(java.lang.String key)
Fount
getProperty
in interface Fount
key
- the key
Fount.getProperty(
java.lang.String)
public UnicodeChar getSkewChar()
Font
getSkewChar
in interface Font
Font.getSkewChar()
public FixedGlue getSpace()
Fount
getSpace
in interface Fount
Fount.getSpace()
public FixedGlue getWidth(UnicodeChar uc)
Font
getWidth
in interface Font
uc
- the Unicode char
Font.getWidth(
de.dante.util.UnicodeChar)
public boolean hasGlyph(UnicodeChar uc)
Font
hasGlyph
in interface Font
uc
- the character
true
iff the glyph is presentFont.hasGlyph(
de.dante.util.UnicodeChar)
public boolean isVirtualFont()
de.dante.extex.font.type.Fount#isVirtualFont()
public void setEfcode(UnicodeChar uc, long code)
Font
setEfcode
in interface Font
uc
- the charactercode
- the associated codeFont.setEfcode(
de.dante.util.UnicodeChar, long)
public void setFontDimen(java.lang.String key, Dimen value)
Font
setFontDimen
in interface Font
key
- the keyvalue
- the value for the keyFont.setFontDimen(
java.lang.String, de.dante.extex.interpreter.type.dimen.Dimen)
public void setHyphenChar(UnicodeChar ahyphen)
Font
setHyphenChar
in interface Font
ahyphen
- the char to setFont.setHyphenChar(
de.dante.util.UnicodeChar)
public void setSkewChar(UnicodeChar askew)
Font
setSkewChar
in interface Font
askew
- the new skew characterFont.setSkewChar(
de.dante.util.UnicodeChar)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |