summaryrefslogtreecommitdiff
path: root/vcl/inc/impfontmetricdata.hxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2023-03-18 00:52:04 +0200
committerخالد حسني <khaled@aliftype.com>2023-03-18 02:08:39 +0000
commit6f54b54ec3dc51fb8824adb08620fde4c70d10f2 (patch)
treec6d7246740e33b5797f349a0d790a0762bbefa76 /vcl/inc/impfontmetricdata.hxx
parentf30e9a6143128421c8fabd2ebb4eafcb43c1e16a (diff)
tdf#154235: Ignore underline metrics for all Liberation fonts
They all have bad metrics and we are better off synthesising metrics for them instead. Also simplify the exception list to only use family name. Change-Id: I9e13bc05bdf56a31e9805fcd348439d191ed3a3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149072 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/inc/impfontmetricdata.hxx')
-rw-r--r--vcl/inc/impfontmetricdata.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/impfontmetricdata.hxx b/vcl/inc/impfontmetricdata.hxx
index 5625cfa726b5..63394a93eb23 100644
--- a/vcl/inc/impfontmetricdata.hxx
+++ b/vcl/inc/impfontmetricdata.hxx
@@ -102,7 +102,7 @@ public:
void ImplInitBaselines(LogicalFontInstance *pFontInstance);
private:
- bool ShouldNotUseUnderlineMetrics(int, int, int, int) const;
+ bool ShouldNotUseUnderlineMetrics() const;
bool ImplInitTextLineSizeHarfBuzz(LogicalFontInstance *pFontInstance);
bool ShouldUseWinMetrics(int, int, int, int, int, int) const;