Skip to content

Improve Cairo glyph API #9

@dbuenzli

Description

@dbuenzli

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions