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

How to get font variations for add_font_instance on Mac? #4386

Open
kaiwk opened this issue May 19, 2021 · 0 comments
Open

How to get font variations for add_font_instance on Mac? #4386

kaiwk opened this issue May 19, 2021 · 0 comments

Comments

@kaiwk
Copy link

kaiwk commented May 19, 2021

I'm little confused about parameter font variations of add_font_instance, and in almost all examples, we just pass an empty vector to it.

Recently, I found create CTFont will lose font variation, and as @jrmuizel said, we create native font with postscript name and create data font with font descriptor(and font variation).

I thought we can get font variations only if we got CTFont/CGFont, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants