Object <- FontDescription <- Font <- LargeBitmapFont |
|
|
FontDraw FontOffsets FontTotalWidth FontWidths MaximumGlyphWidth Validate |
|
Ascent Descent Height |
| Field | Type | |
|---|---|---|
| FontDescription: | fontIdentifier: | Buffer |
| fontName: | Text | |
| fontSize: | Unsigned | |
| isBold: | Boolean | |
| isItalic: | Boolean | |
| isUnderlined: | Boolean | |
| LargeBitmapFont: | ascent: | SignedShort |
| descent: | SignedShort | |
| maximumGlyphWidth: | SignedShort | |
| glyphNumberTable: | GlyphNumberTable | |
| constantWidth: | UnsignedShort | |
| widthTable: | ShortIntegerList | |
| glyphData: | BitmapGlyphData |
instance LargeBitmapFont tag; fontIdentifier: nilObject; fontName: nilObject; fontSize: 0; isBold: false; isItalic: false; isUnderlined: false; ascent: 0; descent: 0; maximumGlyphWidth: 0; glyphNumberTable: nilObject; constantWidth: 0; widthTable: nilObject; glyphData: nilObject; end instance;
Define Class LargeBitmapFont; inherits from Font; field ascent: SignedShort; field descent: SignedShort; field maximumGlyphWidth: SignedShort; field glyphNumberTable: GlyphNumberTable; field constantWidth: UnsignedShort; // used if widthTable == nilObject field widthTable: ShortIntegerList; field glyphData: BitmapGlyphData; overrides Ascent; overrides Descent; overrides Height; overrides MaximumGlyphWidth; overrides FontDraw; overrides FontTotalWidth; overrides FontWidths; overrides FontOffsets; #ifdef VALIDATE overrides Validate; #endif end class;