diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-07 10:37:07 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-08 21:35:55 -0400 |
commit | 623134f48ad998e1392839f7346c780228ddac45 (patch) | |
tree | 606d44e9f51b5a692b69e183999253e96080f06c /pango/pango-layout.c | |
parent | ed13e662d1a327671fc9f1a3ec7d71c4bbfe1280 (diff) | |
download | pango-623134f48ad998e1392839f7346c780228ddac45.tar.gz |
Add line-height attributes
Add attributes for line-height, in a relative and
absolute variant.
This will be used to grow the logical extents of
runs in a way that is compatible with CSS semantics.
In markup, we support a new line_height attribute
that will be interpreted as absolute if it is an
integer > 1024, and as a relative factor otherwise.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r-- | pango/pango-layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index e0475a5e..20208dec 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -638,6 +638,9 @@ pango_layout_get_spacing (PangoLayout *layout) * * If @factor is zero (the default), spacing is applied as before. * + * Note: for semantics that are closer to the CSS line-height + * property, see [func@Pango.attr_line_height_new]. + * * Since: 1.44 */ void |