From 840904c05f4799986d78033f05b4d38f58a59994 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 10 Dec 2022 20:44:03 +0200 Subject: tdf#152267: Strike out changed to underline in small zoom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The font has bogus value in the regular style. Add configuration support for ignoring metrics of such fonts, similar to what we do with line metrics. Change-Id: Ia7cfb44400601e89b8425c9a1144f630f67569f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143648 Tested-by: Jenkins Reviewed-by: خالد حسني --- vcl/inc/impfontmetricdata.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/inc/impfontmetricdata.hxx') diff --git a/vcl/inc/impfontmetricdata.hxx b/vcl/inc/impfontmetricdata.hxx index a94e41540755..5625cfa726b5 100644 --- a/vcl/inc/impfontmetricdata.hxx +++ b/vcl/inc/impfontmetricdata.hxx @@ -102,6 +102,7 @@ public: void ImplInitBaselines(LogicalFontInstance *pFontInstance); private: + bool ShouldNotUseUnderlineMetrics(int, int, int, int) const; bool ImplInitTextLineSizeHarfBuzz(LogicalFontInstance *pFontInstance); bool ShouldUseWinMetrics(int, int, int, int, int, int) const; -- cgit