commit | 1f9b2a7057a519e0ea750875ac439129f1d3df87 | [log] |
---|---|---|
author | Khaled Hosny <[email protected]> | Sat Nov 19 21:11:22 2022 +0200 |
committer | خالد حسني <[email protected]> | Sun Nov 20 22:17:50 2022 +0100 |
tree | bb2bec55a97971c5af0b0f1602ee5b79410895e5 | |
parent | d4005521e4fe4379381605b63af1950c5aecd798 [diff] |
vcl: fix glyph positioning for artificial italic Let HarfBuzz transform the glyph positions as well, so that e.g. combining marks get shifted relative to their slanted base glyphs. Change-Id: Ib399ab462b36effdc21c4bbeba79d65214792f9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142979 Tested-by: Jenkins Reviewed-by: خالد حسني <[email protected]>
diff --git a/vcl/source/font/LogicalFontInstance.cxx b/vcl/source/font/LogicalFontInstance.cxx index d07a8eb..34f05bb 100644 --- a/vcl/source/font/LogicalFontInstance.cxx +++ b/vcl/source/font/LogicalFontInstance.cxx
@@ -67,6 +67,13 @@ if (!aVariations.empty()) hb_font_set_variations(pHbFont, aVariations.data(), aVariations.size()); #if HB_VERSION_ATLEAST(3, 3, 0) // If we are applying artificial italic, instruct HarfBuzz to do the same // so that mark positioning is also transformed. if (NeedsArtificialItalic()) hb_font_set_synthetic_slant(pHbFont, ARTIFICIAL_ITALIC_SKEW); #endif ImplInitHbFont(pHbFont); return pHbFont;