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

Vector fonts and images #67

Open
Dawoodoz opened this issue Apr 24, 2023 · 1 comment
Open

Vector fonts and images #67

Dawoodoz opened this issue Apr 24, 2023 · 1 comment
Labels
Big task This can take months to complete and may generate sub tasks. enhancement New feature or request
Milestone

Comments

@Dawoodoz
Copy link
Owner

Scalable fonts would allow games that use higher resolutions without having too small or too large raster fonts. Vector fonts should consist of vector images holding glyphs. A typeface should be able to generate fonts with different settings for bold, italic, et cetera. Each vector image should generate raster images with different scales.

@Dawoodoz Dawoodoz added the enhancement New feature or request label Apr 24, 2023
@Dawoodoz Dawoodoz added this to the Custom themes milestone Apr 24, 2023
@Dawoodoz Dawoodoz added the Big task This can take months to complete and may generate sub tasks. label Nov 21, 2023
@Dawoodoz
Copy link
Owner Author

This would require a cache of recently used rasterized vector images that throws away the oldest rendering when the buffer gets full. All characters can not be pre-rendered in all languages, typefaces and sizes in advance, because that would take terrabytes of memory.

Vector images that are not recurring often enough to stay in memory can automatically disable the cache using a flag in the vector image when the reuse rate gets too low. Can also have multiple smaller caches to reduce flooding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Big task This can take months to complete and may generate sub tasks. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant