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 proper text shaping #150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hasenbanck
Copy link
Contributor

This replaces rusttypes with cosmic_text, which implements a layout engine and proper text shaping. We have to do glyph caching on our own, but that isn't very hard to do (we have an online texture cache to do that).

We don't use it to the fullest yet, but that would require a redesign of how we handle text in our interface.

I changed the sampler for text to nearest, which results in much shaper text.

@vE5li I would like to call FontLoader::clear() when the application's scaling factor changes, but I haven't found a good way to do so yet.

@hasenbanck hasenbanck force-pushed the text_shaping branch 2 times, most recently from 3ede61a to 3546ff2 Compare November 22, 2024 15:07
This replaces rusttypes with cosmic_text, which
implements a layout engine and proper text shaping.

We don't use it to the fullest yet, but that would require a redesign of how we handle text in our interface.

I changed the sampler for text to nearest, which results in much shaper text.
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