]> git.lyx.org Git - features.git/commit
Compute metrics of *TeX* logos using draw and a null painter
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 7 May 2019 08:47:49 +0000 (10:47 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:27 +0000 (15:48 +0200)
commit73f9129ecfe68d2152ed88c13677db9d6a2b657d
tree7a64c6610752dea9cc3f864467186bfc1c72cc50
parentc052b92e1215aee982d9b150efdeaa91719195ce
Compute metrics of *TeX* logos using draw and a null painter

Instead of writing a metrics() method that mimics what draw() does,
re-use the draw code with a null painter.

This has the additional benefit of fixing InsetSpecialChar logo width
with EB Garamond. I have to admit that I do not know why it was too
large with the old code, but the new code is shorter/better anyway.

This code removes logowidth(). metrics() is moved to a different
place, but only the logo cases are touched.
src/insets/InsetSpecialChar.cpp