waba.applet
Class UffUserFont

java.lang.Object
  |
  +--waba.applet.UserFont
        |
        +--waba.applet.UffUserFont

public class UffUserFont
extends UserFont

Represents the internal UFF font structure, read from a pdb file. used internally.


Inner Class Summary
static class UffUserFont.UserFontRange
          One range of Uff Font
 
Inner classes inherited from class waba.applet.UserFont
UserFont.CharBits
 
Field Summary
 short nParts
           
 UffUserFont.UserFontRange[] ranges
           
 int recentFirstChar
           
 int recentLastChar
           
 int recentRangeIndex
           
 short[] recNo
           
static java.lang.String UFF_CREATORID
           
static java.lang.String UFF_NAMEPREFIX
           
static java.lang.String UFF_TYPEID
           
 int[] uffFirstChar
           
 int[] uffLastChar
           
 
Fields inherited from class waba.applet.UserFont
ascent, bitIndexTable, bitmapTable, bitmapTableSize, descent, firstChar, fontType, fRectHeight, fRectWidth, kernMax, lastChar, leading, loaded, maxWidth, nDescent, numberOfChars, owTLoc, rowWidthInBytes, rowWords
 
Constructor Summary
UffUserFont(java.lang.String fontName)
          Constructor
 
Method Summary
 int charWidth(char ch)
          Get the width of a character
 void setCharBits(char ch, UserFont.CharBits bits)
          Update a CharBits object to reflect the specificities of a given character.
 
Methods inherited from class waba.applet.UserFont
stringWidth, stringWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UFF_NAMEPREFIX

public static final java.lang.String UFF_NAMEPREFIX

UFF_CREATORID

public static final java.lang.String UFF_CREATORID

UFF_TYPEID

public static final java.lang.String UFF_TYPEID

nParts

public short nParts

recNo

public short[] recNo

uffFirstChar

public int[] uffFirstChar

uffLastChar

public int[] uffLastChar

ranges

public UffUserFont.UserFontRange[] ranges

recentRangeIndex

public int recentRangeIndex

recentFirstChar

public int recentFirstChar

recentLastChar

public int recentLastChar
Constructor Detail

UffUserFont

public UffUserFont(java.lang.String fontName)
Constructor
Parameters:
fontName - name of the user font
Method Detail

charWidth

public int charWidth(char ch)
Get the width of a character
Overrides:
charWidth in class UserFont
Parameters:
ch - charcter to get the width of
Returns:
the width of the character

setCharBits

public void setCharBits(char ch,
                        UserFont.CharBits bits)
Update a CharBits object to reflect the specificities of a given character.
Overrides:
setCharBits in class UserFont
Parameters:
ch - the character to examine
bits - the CharBits structure to update