|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.afm.LoadableAfmFont
public class LoadableAfmFont
Class to load afm fonts.
FontParameter.
| Constructor Summary | |
|---|---|
LoadableAfmFont()
|
|
| Method Summary | |
|---|---|
void |
enableLogging(java.util.logging.Logger logger)
|
FontKey |
getActualFontKey()
Returns the actual FontKey for this font after a font substitution. |
FixedDimen |
getActualSize()
Returns the actual size of the font. |
byte[] |
getAfm()
Returns the afm data, or null, if not available. |
int |
getCheckSum()
Returns the checksum of the font. |
FixedGlue |
getDepth(UnicodeChar uc)
Returns the depth of the char. |
FixedDimen |
getDesignSize()
Returns the design size of the font. |
FixedDimen |
getEm()
Returns the size of 'M'. |
int |
getEncodingForChar(int codepoint)
Returns the number of the encoding vector for the codepoint. |
java.util.List<java.lang.String[]> |
getEncodingVectors()
Returns the encoding vectors as list of string array (without a '/') or null, if no one exists. |
FixedDimen |
getEx()
Returns the size of 'x'. |
FixedDimen |
getFontDimen(java.lang.String name)
Returns the size of the parameter with the name 'name'. |
FontKey |
getFontKey()
Returns the FontKey for this font. |
java.lang.String |
getFontName()
Returns the name of 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 chars. |
UnicodeChar |
getLigature(UnicodeChar uc1,
UnicodeChar uc2)
Returns the ligature for two chars. |
java.lang.String |
getName()
Returns the internal name of the font. |
byte[] |
getPfa()
Returns the pfa data, or null, if not available. |
byte[] |
getPfb()
Returns the pfb data, or null, if not available. |
FixedCount |
getScaleFactor()
Returns the scale factor of the font. |
FixedGlue |
getSpace()
Returns the size of the 'space'. |
FixedGlue |
getWidth(UnicodeChar uc)
Returns the width of the char. |
byte[] |
getXtf()
Returns the xtf data, or null, if not available. |
boolean |
hasEncodingVector()
Returns true, if the font has an encoding vector,
otherwise false. |
boolean |
hasGlyph(UnicodeChar uc)
Returns true, if the glyph exists. |
boolean |
hasMultiFonts()
If true, the font has more the one font in it. |
boolean |
isType1()
Returns true, if the font is a type 1 font (with
afm/pfb), otherwise false. |
boolean |
isXtf()
Returns true, if the font is a ttf/otf font, otherwise
false. |
void |
loadFont(java.io.InputStream in,
CoreFontFactory factory,
FontKey key)
Load a font from the stream. |
void |
setResourceFinder(ResourceFinder finder)
|
void |
usedCharacter(BackendCharacter bc)
Tells the font, which character is used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoadableAfmFont()
| Method Detail |
|---|
public void enableLogging(java.util.logging.Logger logger)
org.extex.framework.logger.LogEnabled#enableLogging(java.util.logging.Logger)public FontKey getActualFontKey()
getActualFontKey in interface BackendFontgetActualFontKey in interface BaseFontBaseFont.getActualFontKey()public FixedDimen getActualSize()
getActualSize in interface ExtexFontExtexFont.getActualSize()public byte[] getAfm()
null, if not available.
TODO mgn raus
getAfm in interface BackendFontnull, if not available.BackendFont.getAfm()public int getCheckSum()
getCheckSum in interface BackendFontBackendFont.getCheckSum()public FixedGlue getDepth(UnicodeChar uc)
getDepth in interface ExtexFontuc - The Unicode char.
ExtexFont.getDepth(org.extex.core.UnicodeChar)public FixedDimen getDesignSize()
getDesignSize in interface ExtexFontExtexFont.getDesignSize()public FixedDimen getEm()
getEm in interface ExtexFontExtexFont.getEm()public int getEncodingForChar(int codepoint)
getEncodingForChar in interface BackendFontcodepoint - The codepoint of the char.
BackendFont.getEncodingForChar(int)public java.util.List<java.lang.String[]> getEncodingVectors()
null, if no one exists.
TODO mgn raus
getEncodingVectors in interface BackendFontBackendFont.getEncodingVectors()public FixedDimen getEx()
getEx in interface ExtexFontExtexFont.getEx()public FixedDimen getFontDimen(java.lang.String name)
The size are multiples of the design size!
getFontDimen in interface ExtexFontname - The name of the parameter.
ExtexFont.getFontDimen(java.lang.String)public FontKey getFontKey()
getFontKey in interface BaseFontBaseFont.getFontKey()public java.lang.String getFontName()
getFontName in interface ExtexFontExtexFont.getFontName()public FixedGlue getHeight(UnicodeChar uc)
getHeight in interface ExtexFontuc - The Unicode char.
ExtexFont.getHeight(org.extex.core.UnicodeChar)public FixedDimen getItalicCorrection(UnicodeChar uc)
getItalicCorrection in interface ExtexFontuc - The Unicode char.
ExtexFont.getItalicCorrection(org.extex.core.UnicodeChar)
public FixedDimen getKerning(UnicodeChar uc1,
UnicodeChar uc2)
getKerning in interface ExtexFontuc1 - The Unicode char (first one).uc2 - The Unicode char (second one).
ExtexFont.getKerning(org.extex.core.UnicodeChar,
org.extex.core.UnicodeChar)
public UnicodeChar getLigature(UnicodeChar uc1,
UnicodeChar uc2)
null is returned.
getLigature in interface ExtexFontuc1 - The Unicode char (first one).uc2 - The Unicode char (second one).
ExtexFont.getLigature(org.extex.core.UnicodeChar,
org.extex.core.UnicodeChar)public java.lang.String getName()
getName in interface BackendFontBackendFont.getName()public byte[] getPfa()
null, if not available.
TODO mgn raus
getPfa in interface BackendFontnull, if not available.BackendFont.getPfa()public byte[] getPfb()
null, if not available.
TODO mgn raus
getPfb in interface BackendFontnull, if not available.BackendFont.getPfb()public FixedCount getScaleFactor()
getScaleFactor in interface ExtexFontExtexFont.getScaleFactor()public FixedGlue getSpace()
getSpace in interface ExtexFontExtexFont.getSpace()public FixedGlue getWidth(UnicodeChar uc)
getWidth in interface ExtexFontuc - The Unicode char.
ExtexFont.getWidth(org.extex.core.UnicodeChar)public byte[] getXtf()
null, if not available.
TODO mgn raus
getXtf in interface BackendFontnull, if not available.BackendFont.getXtf()public boolean hasEncodingVector()
true, if the font has an encoding vector,
otherwise false.
TODO mgn raus
hasEncodingVector in interface BackendFontBackendFont.hasEncodingVector()public boolean hasGlyph(UnicodeChar uc)
true, if the glyph exists.
hasGlyph in interface ExtexFontuc - the unicode char
true, if the glyph exists.ExtexFont.hasGlyph(org.extex.core.UnicodeChar)public boolean hasMultiFonts()
true, the font has more the one font in it.
TODO mgn raus
hasMultiFonts in interface BackendFonttrue, if the font has more fonts in it.BackendFont.hasMultiFonts()public boolean isType1()
true, if the font is a type 1 font (with
afm/pfb), otherwise false.
TODO mgn raus
isType1 in interface BackendFonttrue, if the font is a type 1 font (with
afm/pfb), otherwise false.BackendFont.isType1()public boolean isXtf()
true, if the font is a ttf/otf font, otherwise
false.
TODO mgn raus
isXtf in interface BackendFonttrue, if the font is a ttf/otf font,
otherwise false.BackendFont.isXtf()
public void loadFont(java.io.InputStream in,
CoreFontFactory factory,
FontKey key)
throws CorruptFontException
loadFont in interface LoadableFontin - The stream for reading.factory - Tthe font factory.key - The font key.
CorruptFontException - if the font is corrupt.LoadableFont.loadFont(java.io.InputStream,
org.extex.font.CoreFontFactory, org.extex.font.FontKey)public void setResourceFinder(ResourceFinder finder)
org.extex.resource.ResourceAware#setResourceFinder(
org.extex.resource.ResourceFinder)public void usedCharacter(BackendCharacter bc)
usedCharacter in interface BackendFontbc - The character.BackendFont.usedCharacter(
org.extex.font.BackendCharacter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||