org.extex.font
Interface BackendFont

All Known Implementing Classes:
LoadableAfmFont, LoadableTfmFont, LoadableVfFont, LoadableXtfFont

public interface BackendFont

Interface for a backend font.

Version:
$Revision: 6438 $
Author:
Michael Niedermair

Method Summary
 FontKey getActualFontKey()
          Returns the actual FontKey for this font after a font substitution.
 byte[] getAfm()
          Returns the afm data, or null, if not available.
 int getCheckSum()
          Returns the checksum of the font.
 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.
 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.
 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 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 usedCharacter(BackendCharacter bc)
          Tells the font, which character is used.
 

Method Detail

getActualFontKey

FontKey getActualFontKey()
Returns the actual FontKey for this font after a font substitution.

Returns:
Returns the actual FontKey for this font.

getAfm

byte[] getAfm()
Returns the afm data, or null, if not available. TODO mgn raus

Returns:
Returns the afm data, or null, if not available.

getCheckSum

int getCheckSum()
Returns the checksum of the font. TODO mgn raus

Returns:
the checksum.

getEncodingVectors

java.util.List<java.lang.String[]> getEncodingVectors()
Returns the encoding vectors as list of string array (without a '/') or null, if no one exists. TODO mgn raus

Returns:
Returns the encoding vectors.

getName

java.lang.String getName()
Returns the internal name of the font.

Returns:
the internal name of the font.

getPfa

byte[] getPfa()
Returns the pfa data, or null, if not available. TODO mgn raus

Returns:
Returns the pfa data, or null, if not available.

getPfb

byte[] getPfb()
Returns the pfb data, or null, if not available. TODO mgn raus

Returns:
Returns the pfb data, or null, if not available.

getXtf

byte[] getXtf()
Returns the xtf data, or null, if not available. TODO mgn raus

Returns:
Returns the xtf data, or null, if not available.

hasEncodingVector

boolean hasEncodingVector()
Returns true, if the font has an encoding vector, otherwise false. TODO mgn raus


hasMultiFonts

boolean hasMultiFonts()
If true, the font has more the one font in it. TODO mgn raus

Returns:
Returns true, if the font has more fonts in it.

getEncodingForChar

int getEncodingForChar(int codepoint)
Returns the number of the encoding vector for the codepoint. If no enocding vector exists, -1 is returned. TODO mgn raus

Parameters:
codepoint - The codepoint of the char.
Returns:
Returns the number of the encoding vector for the codepoint.

isType1

boolean isType1()
Returns true, if the font is a type 1 font (with afm/pfb), otherwise false. TODO mgn raus

Returns:
Returns true, if the font is a type 1 font (with afm/pfb), otherwise false.

isXtf

boolean isXtf()
Returns true, if the font is a ttf/otf font, otherwise false. TODO mgn raus

Returns:
Returns true, if the font is a ttf/otf font, otherwise false.

usedCharacter

void usedCharacter(BackendCharacter bc)
Tells the font, which character is used. TODO mgn raus

Parameters:
bc - The character.