]> git.lyx.org Git - features.git/commit
Improve drawing of math roots (\sqrt and \root)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 31 Mar 2017 16:50:14 +0000 (18:50 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 31 Mar 2017 16:55:08 +0000 (18:55 +0200)
commit758de9577dcf3ff912c794dc4dffa13e138ffd41
tree84ab11baa49fdd7da0a91088f786bd2af8bcb634
parentda590925cd6749587b9f500ecdaa457e34bc0f4a
Improve drawing of math roots (\sqrt and \root)

This is preliminary work to make roots look more like in TeX output:

* correct font size for root order

* set minimum size of the root from the max ascent descent of the
  font. This is what TeX does.

* fix drawing, and in particular horizontal size.

More needs to be done, in particular:

* handle zooming and dpi correctly by removing hardcoded pixel values.

* factor the code for the two types of roots in one.
src/mathed/InsetMathRoot.cpp
src/mathed/InsetMathSqrt.cpp