summaryrefslogtreecommitdiff
path: root/vcl/inc/impfontmetricdata.hxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-12-10 20:44:03 +0200
committerخالد حسني <khaled@aliftype.com>2022-12-10 21:22:32 +0000
commit840904c05f4799986d78033f05b4d38f58a59994 (patch)
treea915b1324c07463c62dad3cc9e5b6ce2cb190e2e /vcl/inc/impfontmetricdata.hxx
parent7a3ecdd0ab66d516bd8934a7cd32654b85fef312 (diff)
tdf#152267: Strike out changed to underline in small zoom
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: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/inc/impfontmetricdata.hxx')
-rw-r--r--vcl/inc/impfontmetricdata.hxx1
1 files changed, 1 insertions, 0 deletions
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;