]> 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, 18 Jun 2020 12:39:54 +0000 (14:39 +0200)
commit3ee085685dc50e95cdd0fbf3e4f34b5d9193d9c0
treebf0dc8659a36b63dbc639772c912fe2e1d985c18
parent963fdf2b2a603e041d7554e9ec08baa6c1f358fd
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