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

add font initialize callback #24

Merged
merged 1 commit into from
Dec 25, 2021
Merged

Conversation

ousttrue
Copy link
Contributor

Hello.

I've added flexible initialization with callbacks.
Register the function as follows for UnityEvent.

        io.Fonts.AddFontDefault();
        io.Fonts.AddFontFromFileTTF("C:/Windows/Fonts/MSGothic.ttc", 24, config.Ptr, io.Fonts.GetGlyphRangesJapanese());
        io.Fonts.Build();

This is useful.
Thank you.

@psydack psydack self-requested a review December 25, 2021 12:34
Copy link
Owner

@psydack psydack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those changes will help a lot and I'll add the instructions into readme.

I really appreciate, thanks!

@psydack psydack merged commit 5044f42 into psydack:main Dec 25, 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.

2 participants