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

missing method: Typeface.getVariationDesignParameters #112

Closed
justvanrossum opened this issue Sep 17, 2020 · 2 comments
Closed

missing method: Typeface.getVariationDesignParameters #112

justvanrossum opened this issue Sep 17, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@justvanrossum
Copy link
Contributor

The SkTypeface::getVariationDesignParameters method doesn't seem to be exposed to Python.

It's companion SkTypeface::getVariationDesignPosition is there.

(Btw. skia-python is fantastic! I'm having a lot of fun with it.)

@justvanrossum
Copy link
Contributor Author

Perhaps related — I find that typeface.getVariationDesignPosition() is working unreliably across platforms:

  • on macOS it works, but returns more positions (axes) than exist in the font (but pos.axis will be 0 instead of a valid axis tag for the excess axes)
  • on Linux not all axes that exist in the font are reported.

I will need some time to prepare a proper report with example code and an example font. I will submit a new issue once I'm done.

@kyamagu
Copy link
Owner

kyamagu commented Sep 18, 2020

Thanks for reporting. There are still many APIs that are not exposed, and this is one of them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants