]> git.lyx.org Git - lyx.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>
Sat, 5 Jan 2019 13:40:56 +0000 (14:40 +0100)
commite73c0d6387f0be4b1d5e3a47e0b6d29585c52cbc
tree691fd17cd4ce4bf995f4d99049293f8b80c33dc7
parent08100f8b02ec786241e3ba6ad6c1b9802108f4c7
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.
Fixes ticket #10532.
Fixes ticket #10767.

(cherry picked from commit d8498d4785282a6f42a69f56ebd46ac32e1d2f51)
src/frontends/qt4/GuiPainter.cpp
status.23x