|
| void | dosetifont (void) |
| void | dosetifont2 (void) |
| void | intuifontlib_codeinit (void) |
| void | douseifont (void) |
| void | dofreeifont (void) |
| void | loadchk (void) |
| static ULONG | codeinit_c (void) |
| | The library's init: the default object topaz 8 becomes the current IntuiFont (the pad is not cleared).
|
| static void | freeifont (struct bb_intuifont *f, const void *gfx) |
| static void | dofreeifont_c (const void *gfx) |
| | Free IntuiFont#: the object's free routine (_free): close its font (CloseFont), if one is open.
|
| static void | douseifont_c (void) |
| | Use IntuiFont#: the object's use routine (_use): the object (a3) becomes the current IntuiFont (MOVE.l a3,textattr).
|
| static ULONG | setifont (const UBYTE *name, UWORD ysize, UWORD style, const ULONG *lens, WORD used, const void *gfx, const void *diskfont) |
| static ULONG | dosetifont_c (const UBYTE *name, UWORD ysize, const ULONG *lens, WORD used, const void *gfx, const void *diskfont) |
| | LoadFont IntuiFont#,Fontname.font$,Y size: load a font into an IntuiFont object (style 0).
|
| static ULONG | dosetifont2_c (const UBYTE *name, UWORD ysize, UWORD style, const ULONG *lens, WORD used, const void *gfx, const void *diskfont) |
| | LoadFont IntuiFont#,Fontname.font$,Y size,style: LoadFont with a style.
|
| | BLITZ_ERRCHK_ASM (loadchk, " .globl _loadchk\n" "_loadchk:\n" " beq.s 1f\n" " rts\n" "1: move.l #_mess1,d0\n" " trap #0") |
| ULONG dosetifont2_c |
( |
const UBYTE * | name, |
|
|
UWORD | ysize, |
|
|
UWORD | style, |
|
|
const ULONG * | lens, |
|
|
WORD | used, |
|
|
const void * | gfx, |
|
|
const void * | diskfont ) |
|
static |
LoadFont IntuiFont#,Fontname.font$,Y size,style: LoadFont with a style.
ta_Style = the style's low byte, ta_Flags = 0. Fixed (#197): the original wrote the style as a WORD to +6: ta_Style = the upper byte of the argument (0 for 0..255), ta_Flags = the style.
- Parameters
-
| name | d1: the font name |
| ysize | d2: the height |
| style | d3: the style |
| lens | a2: the stack with the name's length |
| used | d5: the offset of the used variable from a5 |
| gfx | d6: graphics.library |
| diskfont | a6: diskfont.library |
- Returns
- d0: the font, 0 if it could not be opened (CCR Z then)
| ULONG dosetifont_c |
( |
const UBYTE * | name, |
|
|
UWORD | ysize, |
|
|
const ULONG * | lens, |
|
|
WORD | used, |
|
|
const void * | gfx, |
|
|
const void * | diskfont ) |
|
static |
LoadFont IntuiFont#,Fontname.font$,Y size: load a font into an IntuiFont object (style 0).
The object (a3) becomes the used and the current IntuiFont; its old font is closed, the name copied with maxslib allocst (Fixed (#198): the copy of a previous LoadFont is freed first; the original never freed it), then OpenDiskFont. Amiga mode only. DIFF: a2 stays unchanged (the original pops the name length). Errors (debugger only): "Can't Open Font" - loadchk tests the Z flag the routine leaves.
- Parameters
-
| name | d1: the font name |
| ysize | d2: the height |
| lens | a2: the stack with the name's length |
| used | d5: the offset of the used variable from a5 |
| gfx | d6: graphics.library |
| diskfont | a6: diskfont.library |
- Returns
- d0: the font, 0 if it could not be opened (CCR Z then)