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

feat: introduce embedded fonts #28

Merged
merged 9 commits into from
Mar 17, 2024
Merged

feat: introduce embedded fonts #28

merged 9 commits into from
Mar 17, 2024

Conversation

shikaan
Copy link
Collaborator

@shikaan shikaan commented Mar 16, 2024

This change introduces an embedded font which exactly as the sprites (i.e., one pixel at the time). This also means we can drop SDL_ttf.

The change is non-breaking, except that existing ttf fonts wont be loaded.

TO DO

  • Drop the font from the configuration
  • Introduce a size parameter for the drawString method (to draw larger text)

With this change, users can set a size for the string they are
rendering. There are only 4 sizes. We don't allow float scaling
for the simple reason we want to keep everything based on the
existing grid (i.e., chars will always be rendered with full
pixels, intead of fractions).
This also removes a redundant element in the configuration array
@shikaan shikaan merged commit c44401c into main Mar 17, 2024
1 check passed
@shikaan shikaan deleted the feat/embedded-fonts branch March 17, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant