Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement text rendering using a cross-platform library #39

Open
Tracked by #42
nmlgc opened this issue Apr 2, 2023 · 1 comment
Open
Tracked by #42

Implement text rendering using a cross-platform library #39

nmlgc opened this issue Apr 2, 2023 · 1 comment
Labels
Graphics Portability Porting the game away from 32-bit Windows

Comments

@nmlgc
Copy link
Owner

nmlgc commented Apr 2, 2023

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

@nmlgc nmlgc added Graphics Portability Porting the game away from 32-bit Windows labels Apr 2, 2023
@nmlgc
Copy link
Owner Author

nmlgc commented Jul 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graphics Portability Porting the game away from 32-bit Windows
Projects
None yet
Development

No branches or pull requests

1 participant