]> git.lyx.org Git - lyx.git/commit
Fix fonts used by sub/superscript in text
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Mar 2019 15:13:30 +0000 (16:13 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Mar 2019 15:19:52 +0000 (16:19 +0100)
commitd52e04a9b308c0cb72c93e416a4bd59d9e8f9b39
treebf02bc4e139cb4abce65e914b92008c2da3986d0
parentcfb8b214d182052ee0ac2475de936273c51f2d99
Fix fonts used by sub/superscript in text

Several changes are needed to get things right:
* nested supersripts only work with inheritFonts=true.

* to get caret position right, it is necessary to remember the outside
  font of the inset before computing metrics.

* to get the size right at insertion time, it is necessary to trigger
  a metrics computation just after inset insertion.
src/Text3.cpp
src/insets/InsetScript.cpp
src/insets/InsetScript.h