]> git.lyx.org Git - features.git/commit
Cache the value of GuiFontMetrics::lbearing().
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Mar 2019 09:56:16 +0000 (10:56 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Mar 2019 10:14:43 +0000 (11:14 +0100)
commitd3979e798cd9c85041bb5e6158002384a8cddb8c
treeafd9de86e92772ca000333cf29df1138ae863334
parentb6ab5cd9625aa84384754b4c73bd8d6964d8c3da
Cache the value of GuiFontMetrics::lbearing().

This seems to be necessary on windows, where math editing can get very
slow. Note that other methods like rbearing already use a cache.

In the future all these caches for single characters shall be unified.
src/frontends/qt4/GuiFontMetrics.cpp
src/frontends/qt4/GuiFontMetrics.h