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

Rusttype font rendering backend #48

Closed
wants to merge 1 commit into from
Closed

Rusttype font rendering backend #48

wants to merge 1 commit into from

Conversation

l4l
Copy link
Owner

@l4l l4l commented Jun 6, 2021

This MR adds a rusttype backend for font rendering and sets it as default instead of font-kit.

Resolves #44 and probably #46

Would be nice to get a feedback for that patch. Ping @nikp123 @sujay1844 @poperigby or anyone else who has the font issue.

@l4l

This comment has been minimized.

@poperigby
Copy link

Just gave it a shot. It takes around 7 seconds to launch, and the UI doesn't respond and at all. I have to force kill it.

@l4l
Copy link
Owner Author

l4l commented Jun 6, 2021

That's weird, did you try release build?

@l4l l4l changed the title WIP: Rusttype font rendering backend Rusttype font rendering backend Jun 6, 2021
@l4l
Copy link
Owner Author

l4l commented Jun 6, 2021

Render time increased by factor of 10 :\ (for me 3-4ms -> 20-50ms), gpu_cache feature only make things worse. Perhaps ab_glyph should be considered also, but its API is fairly cumbersome. For now I think an appropriate solution would be setting font-kit back as a default engine.

@poperigby
Copy link

That's weird, did you try release build?

Yep. That works just fine.

@l4l
Copy link
Owner Author

l4l commented Oct 26, 2021

I'll consider fontdue instead. Don't like current rusttype performance anyway.

@l4l l4l closed this Oct 26, 2021
@l4l l4l mentioned this pull request Oct 27, 2021
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.

Consider using rusttype for font rendering
2 participants