]> 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>
Thu, 18 Jun 2020 13:48:18 +0000 (15:48 +0200)
commitf0e9dece5d0119f59cab070db5ba70f95062fa2b
treeeb963d8eede93826c7c0554527b10e047bc0e0b4
parentc5f911c394c2584c7f2e87c1be881e14e51e134d
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