font: pango: fix vertical alignment of non-ASCII glyphs
authorChang Liu <cl91tp@gmail.com>
Sat, 9 Mar 2013 11:26:48 +0000 (12:26 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 9 Mar 2013 11:26:48 +0000 (12:26 +0100)
commite874518153e509b74aa8e3e52b02642718eb5575
tree111c82631c68b95fe19b739947ce7990493a5c5e
parent1658bd82164c50cc048bae5a28cd223a7d45ff1e
font: pango: fix vertical alignment of non-ASCII glyphs

pango_ft2_render_layout_line() requires the baseline offset as argument,
not the vertical extent of the glyphs. This is important as we currently
align glyphs to the bottom edge instead of the baseline.

Fix this by passing the cached baseline offset so all glyphs are correctly
aligned to the baseline. We then clip according to the cell-extents as
usual.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/font_pango.c