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

Potential font loading performance increase of >50% #215

Open
leifniem opened this issue Sep 8, 2023 · 0 comments
Open

Potential font loading performance increase of >50% #215

leifniem opened this issue Sep 8, 2023 · 0 comments

Comments

@leifniem
Copy link

leifniem commented Sep 8, 2023

Forgive me if this is wrong information or unorthodox, but for my first Rust project i have been utilizing font_kit and plaqyed around a little with the loading approach.

I have a 2GB folder with ~5.5k fonts, which loads in roundabout 50 seconds with the current implementation. Using jwalk and it's processing capabilities to only keep the relevant files and distinguishing between single and collection types by their file extension managed to get it down to ~11s using Font::from_path to read the files.

If i did research correctly collections should use the ttc or otc extensions only, which would make this approach viable, if not i'll happily stand corrected.

Thanks for this library it's great :)

@leifniem leifniem changed the title Font-loading performance difference Potential font loading performance increase of >50% Sep 8, 2023
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

No branches or pull requests

1 participant