nmlgc / ssg

秋霜玉 / Shuusou Gyoku
MIT License
20 stars 5 forks source link

Implement text rendering using a cross-platform library #39

Open nmlgc opened 1 year ago

nmlgc commented 1 year ago

The original game uses the native Windows GDI text rendering API. If we go cross-platform, we'd probably use FreeType?

nmlgc commented 11 months ago

It's probably not going to be SDL_ttf, despite moving to SDL for everything else. All of its rasterization functions allocate a new SDL_Surface, leading to tons of complaints about how slow it is. The library should definitely make use of the rectangle packing cache system I implemented in P0251.