iceball icon indicating copy to clipboard operation
iceball copied to clipboard

TTF support

Open rakiru opened this issue 12 years ago • 8 comments

TTF support instead of having to make bitmaps of fonts. This would allow easier customisation, as well as make #36 feasible.

Link that Dany0 thinks could be useful: http://lazyfoo.net/SDL_tutorials/lesson07/

rakiru avatar Jul 27 '13 00:07 rakiru

Freetype2 is a bloated dependency, although there IS a very minimalist TrueType library out there... (1 30KB C file or so)

asiekierka avatar Aug 05 '13 18:08 asiekierka

@asiekierka I found this http://mollyrocket.com/forums/viewtopic.php?t=736

Did you mean that?

dany-on-demand avatar Aug 08 '13 11:08 dany-on-demand

@Dany0 Exactly. We could integrate that, if we really need TrueType.

asiekierka avatar Aug 08 '13 12:08 asiekierka

We really need either TTF support or something similar to easily support custom fonts and scalable text (something I really want as I have to lean in and squint to read chat).

rakiru avatar Aug 08 '13 19:08 rakiru

We do have a way to stretch images with img_blit now.

iamgreaser avatar Aug 08 '13 22:08 iamgreaser

Unless we're stretching in whole numbers only, bitmap fonts are going to be difficult to read.

rakiru avatar Aug 09 '13 00:08 rakiru

No, we are not aiming to get this done by the Red Event.

iamgreaser avatar Feb 17 '15 03:02 iamgreaser

stb_ttf has quite poor quality (compared to FreeType) from what I've seen. My only concern with using FreeType would be adding it to the build instructions x_x

fkaa avatar Jan 02 '16 10:01 fkaa