]> git.lyx.org Git - features.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>
Thu, 18 Jun 2020 13:48:19 +0000 (15:48 +0200)
commitb479c16e5f1c5cf7ac441b769050208baecbd707
tree226b9f287fd91b8d090517d32c59d95fd0ee3d99
parent77fc530a20ae584c4063847ff8e3e6b1752e563b
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