vcl: Apply variations to font metrics

Desktop / LibreOffice - Khaled Hosny [aliftype.com] - 30 September 2022 14:17 UTC

Use HarfBuzz API instead of reading the raw font table directly, since HarfBuzz will apply the font variations as needed. For non-variable fonts we still also use HarfBuzz font metrics API, but in a more fine-grained way to maintain backward-compatibility.

Change-Id: If6b12a11ecb63356be92ef4f0714355ae77378f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140799

fb417ee082af vcl: Apply variations to font metrics
configure.ac | 2 +-
vcl/inc/impfontmetricdata.hxx | 3 +-
vcl/inc/sft.hxx | 14 ----
vcl/source/font/fontmetric.cxx | 168 +++++++++++++++++++++++++----------------
vcl/source/fontsubset/sft.cxx | 26 -------
5 files changed, 107 insertions(+), 106 deletions(-)

Upstream: cgit.freedesktop.org


  • Share