Revision as of 19:07, 3 October 2009 by Dr. D'nar
Official Name: SFont_Len
BCALL Address: 4786
Returns the width of a small font character.
- HL: Index into font data table. Multiply the character's code by eight to get this.
- B: Font width.
- A: The SDK is wrong. A only contains the width if a localize or font hook is active and wants to intercept the call.
- AF, BC, DE, HL
Get the width of the character in A:
ld l, a ld h, 0 add hl, hl add hl, hl add hl, hl B_CALL SFont_Len