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

Improve Cairo glyph API #9

Open
dbuenzli opened this issue Aug 14, 2015 · 1 comment
Open

Improve Cairo glyph API #9

dbuenzli opened this issue Aug 14, 2015 · 1 comment

Comments

@dbuenzli
Copy link
Owner

As @art-w noted in his PR that brought Cairo support for Vg:

While Cairo is able to render text, it's intended to be used with Pango (which isn't binded with OCaml at this time). Hence, the text API is severely lacking: Beside not using the glyphs infos provided by Vg, the most striking offense is that the weights are limited to Normal and Bold (arbitrarily chosen at W600.)

The thing is that using the glyph API can be useful even without Pango. The vecho.ml example shows it already possible to perform basic layout with kerning for basic alphabetic scripts using Otfm.

Get in touch if you are interested in working on this problem.

@Chris00
Copy link

Chris00 commented Oct 10, 2018

There are two new font modules: Ft and Cairo_pango. They were written in haste and would benefit from more eyes looking at the code and testing.

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