Skip to content

Support alright fonts #4

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

Open
corranwebster opened this issue Oct 15, 2024 · 3 comments
Open

Support alright fonts #4

corranwebster opened this issue Oct 15, 2024 · 3 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@corranwebster
Copy link
Contributor

corranwebster commented Oct 15, 2024

The minified vector fonts from https://github.com/lowfatcode/alright-fonts may be better than bitmap fonts.

@corranwebster
Copy link
Contributor Author

Experimentation shows that they rely on being able to render multi-polygons with winding number in/out rules, which is beyond the capabilities of FrameBuffer. Might be able to fake it by testing the initial point of a contour to see if it is set.

@corranwebster
Copy link
Contributor Author

Putting this on the back burner - this is effectively needing either a custom renderer or on-the-fly rendering into a bit buffer for every character write. Both are likely to be too slow.

@corranwebster corranwebster added the wontfix This will not be worked on label Oct 16, 2024
@corranwebster
Copy link
Contributor Author

Might be able to fake it by testing the initial point of a contour to see if it is set.

Could probably fake it by xor-ing subsequent curves, since fonts are not usually self-intersecting, but that means needing a temporary buffer to work with to get the mask, at least for multi-curve fonts.

@corranwebster corranwebster added the enhancement New feature or request label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant