site  contact  subhomenews

gui_engine fully converted to TTF

January 21, 2023 — BarryK

I posted about converting the titlebar of the demo 'example.c' from the 8x8 bitmap font builtin to SDL_gfx, to TTF:

https://bkhome.org/news/202301/ttf-text-in-titlebar-guiengine.html

Basically more of the same, went through and did a full conversion, here is a snapshot:

img1

The down-arrow in the drop-down list was previously a character from the gfx 8x8 set. I changed it to a "trigon", which is a triangle, a shape that is available in SDL_gfx -- might make it a bit smaller. The "x" in the checkbox is still from the gfx 8x8 set.

Just a quick post, heading off into the big wide world for the rest of the day.    

Tags: easy