[SDL] How do I make a bitmap font system with an image background
Ricardo Cruz
rpmcruz at clix.pt
Tue Jul 18 12:15:12 PDT 2006
Hi there,
I haven't seen the link you pointed initially (your mail client doesn't honor
threads and I don't feel like searching for your early message), but probably
the examples are using pixmap fonts. Bitmaps fonts (arrays of 0 and 1) are
much better to do some visual tricks on like applying gradients, outlined
them, whatever. Generally, people use SDL_TTF that outputs a surface with
just 2 colors (a bitmap font, that is) and then apply some effects to make it
more pretty.
You may also want to explore code rendered fonts, where you just keep
information on the code about each character and render them using
primitives. If you don't understand, checkout:
http://rpmcruz.planetaclix.pt/repository/graphical/#steadyfeet
Anyway, nothing beats some profissional quality pixmap fonts.
Cheers,
Ricardo
Em Terça, 18 de Julho de 2006 05:50, o benang at cs.its.ac.id escreveu:
> Maybe it won't be a problem with a static font, but what if I wanted to
> make a dinamyc font system (eg. the font can be moved around, can be
> lengthened or shortened in runtime, can animate like flashing font,
> etc.)??
>
--
The very ink with which all history is written is merely fluid
prejudice.
-- Mark Twain
More information about the SDL
mailing list