Documentation: ColourTrans_SetFontColours
Programmer’s Reference Manuals
» Part 8 – Non-kernel input/output
» ColourTrans
» SWI Calls
» ColourTrans_SetFontColours
ColourTrans_ SetFontColours
(SWI &4074F)
| Entry | |
|---|---|
| R0 | Font handle, or 0 for current font |
| R1 | Background palette entry |
| R2 | Foreground palette entry |
| R3 | Maximum foreground colour offset (0-14) |
| Exit | |
|---|---|
| R0 | Preserved |
| R1 | Background logical colour (preserved if in 256 colour mode) |
| R2 | Foreground logical colour |
| R3 | Maximum sensible colour offset (up to R3 on entry) |
Use
This purpose of this call is to calculate the best range of anti-aliasing colours and assign these as the colours to use by the Font Manager.
Notes
Given a pair on palette entries, it calculates the best available range of anti-aliasing colours in the current palette.