summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontmap.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-10-14 08:48:43 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-10-27 16:29:14 -0400
commit7721b0bed57038b342655220ad9bc32f4599f174 (patch)
treeddcd5f849c116b189142b3d7e379658f47ab7738 /pango/pangowin32-fontmap.c
parent0d14052d719274e586176280b3c98dd54fcf8764 (diff)
downloadpango-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 'pango/pangowin32-fontmap.c')
0 files changed, 0 insertions, 0 deletions