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

allow to select skia as blackrenderer backend #266

Open
anthrotype opened this issue Jul 22, 2022 · 2 comments
Open

allow to select skia as blackrenderer backend #266

anthrotype opened this issue Jul 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@anthrotype
Copy link
Collaborator

Blackrenderer, the library used by FontGoggles to render COLRv1, allows to optionally use Skia as a backend in alternative to CoreGraphics on macOS.
Sometimes it could be useful to enable that while previewing a font inside FontGoggles, e.g. to test potentially different renderings across backends.
Since skia-python already has wheels for Mac, I believe it should be straightforward to allow that.

@anthrotype anthrotype added the enhancement New feature or request label Jul 22, 2022
@justvanrossum
Copy link
Owner

justvanrossum commented Jul 25, 2022

I would not be opposed to this. However:

  • I don't know how to draw with skia into a CoreGraphics context. Presumably it needs to go via a pixmap? That may not be 100% straightforward, as the FontGoggles drawing code is resolution agnostic.
  • We need to be careful that skia-python is imported lazily, as FG has much wider macOS support than skia-python has.

@anthrotype
Copy link
Collaborator Author

I see, thanks. I'll take back the "straightforward" then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants