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

When using a custom font you can now specify a font index #873

Merged
merged 4 commits into from
Nov 7, 2021
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented Nov 3, 2021

Closes #853

Please try it out @7sDream

@7sDream
Copy link

7sDream commented Nov 5, 2021

It seems that FontData cannot be accessed because it is not re-exported in the epaint::text module and epaint::text::fonts is private.

Maybe it also need to be re-exported in egui's top level, just like FontDefinitions, for ease of use.

@emilk
Copy link
Owner Author

emilk commented Nov 6, 2021

Good catch - fixed!

@7sDream
Copy link

7sDream commented Nov 6, 2021

Works like a charm now, can't wait to see this in next release, thank you!

@emilk emilk merged commit 878eddd into master Nov 7, 2021
@emilk emilk deleted the font-index branch November 7, 2021 18:47
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.

Allow specifying font index when loading a font file
2 participants