=> R0 = font name / 0 for system font
R1 = flags
R2 = x size (points * 16) }
R3 = aspect ratio (Y / X * 100) } only in VDU mode
R4 = pointer to reduction block }
<= R0 = font handle
This SWI returns a handle for the given font name. When you no longer need
the font, call ZapRedraw_LoseFont. The handle should be placed in r_caddr
for all future operations with ZapRedraw.
If you open a VDU font using this SWI, but plot data in DSA mode, ZapRedraw will convert the font into a bitmap and plot using fast anti-aliased routines. r_flags bit 9 can suppress anti-aliasing.
FindFont flags
Bit Meaning
0 0 => DSA mode 1 => VDU mode
1 R4 points to reduction block
FindFont reduction block
The reduction block allows the sizes of VDU mode fonts to be adjusted. The block takes the following form:
0 left reduction
4 top reduction
8 right reduction
12 bottom reduction
All values are in pixels, and are signed integers.
|
|
|