This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 24
need an enum for the PangoScale values #193
Comments
They should be constants in the bindings, or maybe we need a |
There no PANGO_SCALE_ in Pango-1.0.gir so it need be added manually |
i'm sorry i think the arithmetic is probably not needed. The first case that does arithmetic populates the "size". When "scale" is populated the values are directly put in. I think PANGO_SCALE is something else than PANGO_SCALE_* |
|
@emmanueltouzery Do you want to create a PR for adding such constants? |
Ok, I'll try to prepare a PR ASAP (might take me a little time) |
GuillaumeGomez
added a commit
that referenced
this issue
Aug 9, 2020
fixes #193 add constants for PANGO_SCALE_*
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
the original values are there:
https://developer.gnome.org/pango/stable/pango-Text-Attributes.html#PANGO-SCALE-X-LARGE:CAPS
They are #defined in pango. I believe they're needed to build a GtkTextTag with a specific size, as in the gtk3 demo:
I'm not really sure it should be an enum though, because the first example there seems to do arithmetic with the value (20*PANGO_SCALE).
The text was updated successfully, but these errors were encountered: