com.xmlmill.config
Class FontInfo

java.lang.Object
  |
  +--com.xmlmill.config.FontInfo

public final class FontInfo
extends java.lang.Object

*** For internal use only ***

A FontInfo instance contains the meta information of a font regarding:

  1. font-type
  2. font-name
  3. font-weight
  4. font-style
  5. font-metrics-file
  6. font-program-file
  7. pair-wise-kerning
  8. track-kerning
  9. embeddable
  10. subsettable
  11. font-index
  12. load-on-startup


Method Summary
 int getFontIndex()
          Returns the font-index.
 java.lang.String getMetricsFile()
          Returns the font metrics file in canonical form.
 java.lang.String getName()
          Returns the name of the font.
 java.lang.String getProgramFile()
          Returns the program file in canonical form.
 int getStyle()
          Returns the style of the font.
 int getType()
          Returns the name of the font.
 int getWeight()
          Returns the weight of the font.
 boolean isEmbeddable()
          Returns if the font needs to be embedded.
 boolean isLoadOnStartUp()
          Returns if the fontmetrics needs to be loaded at startup.
 boolean isPairWiseKerning()
          Returns if pair-wise-kerning is to be applied for this font.
 boolean isSubsettable()
          Returns if the font needs to be subsetted.
 boolean isTrackKerning()
          Returns if track-kerning is to be applied for this font.
 java.lang.String toString()
          Returns the font attributes as a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public int getType()
Returns the name of the font.

Returns:
int representing the font-name.
Since:
1.50

getName

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

Returns:
String representing the font-name.
Since:
1.50

getWeight

public int getWeight()
Returns the weight of the font.

Returns:
int representing the font-name.
Since:
1.50

getStyle

public int getStyle()
Returns the style of the font.

Returns:
int representing the font-name.
Since:
1.50

isTrackKerning

public boolean isTrackKerning()
Returns if track-kerning is to be applied for this font.

true or false.
Returns:
boolean true if trackkerning is on, false otherwise.
Since:
1.50

isLoadOnStartUp

public boolean isLoadOnStartUp()
Returns if the fontmetrics needs to be loaded at startup.

Returns:
boolean true if the fontmetrics are loaded at startup, false otherwise.
Since:
1.50

isPairWiseKerning

public boolean isPairWiseKerning()
Returns if pair-wise-kerning is to be applied for this font.

Returns:
boolean indicating true or false.
Since:
1.50

isEmbeddable

public boolean isEmbeddable()
Returns if the font needs to be embedded.

Returns:
boolean indicating true or false.
Since:
1.50

isSubsettable

public boolean isSubsettable()
Returns if the font needs to be subsetted.

Returns:
boolean indicating true or false.
Since:
1.50

getMetricsFile

public java.lang.String getMetricsFile()
Returns the font metrics file in canonical form.

This String represents the full path of where the file that represents this font can be found.

Returns:
string representing the canonical representation of the URL where the file can be found.
Since:
1.50

getProgramFile

public java.lang.String getProgramFile()
Returns the program file in canonical form.

This String represents the full path of where the file that represents this font can be found.

Returns:
string representing the canonical representation of the URL where the file can be found.
Since:
1.50

getFontIndex

public int getFontIndex()
Returns the font-index.

Returns:
int representing the font-index.
Since:
2.50

toString

public java.lang.String toString()
Returns the font attributes as a String.

Overrides:
toString in class java.lang.Object
Returns:
string containing all attributes.
Since:
1.50