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.
| 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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
UffUserFont
public UffUserFont(java.lang.String fontName)
- Constructor
- Parameters:
fontName - name of the user font
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 examinebits - the CharBits structure to update