maclib
Class FontInfo

java.lang.Object
  extended by maclib.FontInfo

public class FontInfo
extends java.lang.Object

This class implements QuickDraw-like definitions for font infos.

Version:
28 mar 2003
Author:
Philippe Chassignet, Ecole Polytechnique
See Also:
MacLib

Field Summary
 short ascent
          The size above base line for most chars.
 short descent
          The size below base line for most chars.
 short leading
          The distance between the descent line and the ascent line below it.
 short widMax
          The greatest character width.
 
Constructor Summary
FontInfo(short ascent, short descent, short widMax, short leading)
          Constructs and initializes a FontInfo object
 
Method Summary
 java.lang.String toString()
          Returns a string representation for the font infos.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ascent

public short ascent
The size above base line for most chars.


descent

public short descent
The size below base line for most chars.


widMax

public short widMax
The greatest character width.


leading

public short leading
The distance between the descent line and the ascent line below it. Distance between consecutive baselines is ascent + descent + leading;

Constructor Detail

FontInfo

public FontInfo(short ascent,
                short descent,
                short widMax,
                short leading)
Constructs and initializes a FontInfo object

Method Detail

toString

public java.lang.String toString()
Returns a string representation for the font infos.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of the font infos.