Chris00 / ocaml-cairo

Binding to Cairo, a 2D Vector Graphics Library.
GNU Lesser General Public License v3.0
54 stars 8 forks source link

Feature Request: support for setting variations for OpenType fonts #30

Open geoffder opened 2 years ago

geoffder commented 2 years ago

Currently there is no way to get/set variations for OpenType variable fonts. I'm curious to try out variable weight particularly for making rounded 3d text polyhedron meshes, as my experiments with offsetting font paths (analogous to modulating their weight) have not been very successful.

In the Cairo API:

Chris00 commented 2 years ago

Thanks for your interest in these bindings. May you submit a PR?

geoffder commented 2 years ago

I have been working on other things, but I can give it a shot when I'm at the point that I am itching to experiment with what I mentioned before again.