gtk-rs / sys

DEPRECATED, each crate has its own sys folder now.
http://gtk-rs.org/
MIT License
31 stars 25 forks source link

Pango backend bindings not being generated #40

Open felixc opened 7 years ago

felixc commented 7 years ago

Pango comes with a few different backends that are structured as separate libraries, but are really part of the bigger project. In particular, there's libpangocairo, libpangoft2, and libpangoxft. No bindings are being generated for these.

The gir-files repository seems to contain all the necessary files (e.g. PangoFT2-1.0.gir), but the only bindings being produced are those defined in Pango-1.0.gir.

The conf/ directory includes gir-pango.toml, but it doesn't mention the related libraries, nor are there equivalent config files for them.

I'm willing to help out with this, but I don't really know how GIR or the generator system works. I poked at it for a bit with a cloned version of the base Pango config, but ran in to errors relating to the Freetype2 types they reference.

EPashkin commented 7 years ago

Your right, PangoCairo-1.0.gir malformed, it don't contains <include name="freetype2" version="2.0"/> and uses it. We get this file directly from ubuntu distr and don't want apply any patches to gir-files repo. Others two seems look fine at first glance, but contains many unowned functions. Gir currently don't generate it in normal mode, so to get high level API its needed be added manually.