]> 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>
Tue, 7 May 2019 08:53:02 +0000 (10:53 +0200)
commit12fcaf86528fff162c6edb81fe36aa9c1dcae38a
tree137ca3889dfe588644775b538c4eae56eccb3fc5
parent43e9f589fcadfaf2cb48f2ffb8e543e335dd879c
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