]> git.lyx.org Git - features.git/commit
Fix vertical offset of fonts like MinionPro
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Jan 2019 11:14:27 +0000 (12:14 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Jan 2019 11:19:47 +0000 (12:19 +0100)
commitd8498d4785282a6f42a69f56ebd46ac32e1d2f51
treebf0dc8659a36b63dbc639772c912fe2e1d985c18
parent62f8b8beb96910bac1fbbf434f32d18fe699b832
Fix vertical offset of fonts like MinionPro

For some reason, adding a LTR/RTL Override unicode character before a
MinionPro string increases the ascent of the line.

This creates vertical offset issues when painting if the ascent used
as reference is the one of the font. Use the QTextLine ascent instead
for better results.

This is a followup to 1bed76e2a.

Fixes (reopened) ticket #11284.
src/frontends/qt4/GuiPainter.cpp