[SDL] Fonts (text in general)
Dido Sevilla
dido at pacific.net.ph
Sat Jan 29 11:20:30 PST 2000
hayward at slothmud.org wrote:
>
> SDL_Console has bitmapped font support.
>
> Also check the 'libraries' section on the SDL site for SDL_ttf.
>
One annoying thing I noticed about SDL_Console's text support is its use
of descenders. A 'p', 'y' or other character that happens to have a bit
of it sticking below the text baseline has the descender on the
baseline, not below it. This is annoying and kinda ugly. Not even the
old 8x8 fonts that are used by the old IBM BIOS for CGA graphics mode
text were like that. Shouldn't be too difficult to rectify if I
understand how fonts are used there, though. Could probably be
corrected by editing the fonts with some good paint program and
displacing the rest of the font by the height of the descenders;
probably no code modifications are needed.
--
------------------------------------------------------------------------
| Rafael R. Sevilla dido at pacific.net.ph |
| Instrumentation, Robotics, and Control Laboratory |
| College of Engineering, University of the Philippines, Diliman |
------------------------------------------------------------------------
More information about the SDL
mailing list