diff options
author | Timm Bäder <mail@baedert.org> | 2017-10-14 08:48:43 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-10-27 16:29:14 -0400 |
commit | 7721b0bed57038b342655220ad9bc32f4599f174 (patch) | |
tree | ddcd5f849c116b189142b3d7e379658f47ab7738 /pangocairo.pc.in | |
parent | 0d14052d719274e586176280b3c98dd54fcf8764 (diff) | |
download | pango-7721b0bed57038b342655220ad9bc32f4599f174.tar.gz |
PangoLayout: Optimize pango_layout_get_baseline
The baseline is the baseline of the first line of text in the layout, so
we can simply _get_extents_internal and use the extents of the first
line we get from that.
This is not a perfect solution (e.g. gtk+ calls pango_layout_get_extents
before a pango_layout_get_baseline call and the former calls
get_extents_internal anyway, so we compute the extents twice...) but it
improves the situation pointed out by the comment in
pango_layout_get_baseline.
https://bugzilla.gnome.org/show_bug.cgi?id=788643
Diffstat (limited to 'pangocairo.pc.in')
0 files changed, 0 insertions, 0 deletions