8000 Cross-platform Rasterisation Pen? · Issue #2492 · fonttools/fonttools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cross-platform Rasterisation Pen? #2492

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

Closed
takaakifuji opened this issue Jan 4, 2022 · 2 comments · Fixed by #2494
Closed

Cross-platform Rasterisation Pen? #2492

takaakifuji opened this issue Jan 4, 2022 · 2 comments · Fixed by #2494

Comments

@takaakifuji
Copy link
Contributor

Is there a handy way to rasterise the paths obtained via pen protocol in a cross-platform manner?

  • CocoaPen/QuartzPen is pretty handy unless you are on a non-macOS environment (e.g. Google Colab)
  • QtPen/WxPen is useful only if it's already used within your codebase as a widget toolkit
  • skia-pathops is a library dedicated to boolean operations but not for drawing

I might be missing something, but I couldn't find a solution that fully suits my needs. After all, I wrote a pen that finds the existing FreeType installation on the system, constructs FT_Outline and let FreeType rasterise the paths. As mentioned in #1769, I agree this is out of scope, but on the other hand I think it makes more sense to wrap it as a pen. If you are interested, I'll share and compile a PR.

@anthrotype
Copy link
Member

I think it would be nice to have a pen that uses freetype-py to rasterize a glyph, yes please send a PR thanks!

@takaakifuji
Copy link
Contributor Author

Thanks for the comment! I've just sent a PR, and please have a look when you have time.

664B

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 a pull request may close this issue.

2 participants
0