-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
feat(reason-skia): bind to FontManager matchFamilyCharacterStyle #939
Conversation
…t/reason-skia/match-family-character-style
let maybeTypeface = | ||
FontManager.matchFamilyStyleCharacter( | ||
fontManager, | ||
"Arial", | ||
style, | ||
["en_US"], | ||
char, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Does this work on all platforms? If so - we might want to add a test case for this, too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm actually not sure! We'll see when CI is finished, I guess!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it looks like it does! The hard part about adding tests for it is Linux -- CI gives DejaVu Sans, but Im not sure what other distros will return. What do you think is the best course of action?
This does some non-traditional Caml operations like shifting/or-ing bits. I think I got it all right, but if not, please let me know! I'll add some examples to SkiaFontManagerCli for it.