diff options
author | Khaled Hosny <khaled@aliftype.com> | 2022-11-20 02:34:26 +0200 |
---|---|---|
committer | خالد حسني <khaled@aliftype.com> | 2022-11-20 02:35:17 +0100 |
commit | 64d4275b60d50a87fb2bf4dd45be3c28902cec52 (patch) | |
tree | 6fbd008b39e473acd357d08bcca0035be1b96ff3 /vcl/quartz | |
parent | 16a7e944ab1b318fafb7dd48d48379168403d2e8 (diff) |
vcl: fix artificial bold and italic on Windows
Move creating DWFontFace to WinFontInstance so that it get proper font
synthesis settings.
Regression from:
commit a80239ede3236c84d7a05d0fbc0f299811fee6c0
Author: Khaled Hosny <khaled@aliftype.com>
Date: Sat Nov 19 03:03:15 2022 +0200
vcl: move creating DWFontFace to WinFontFace
Change-Id: Ifba947d8908a37972d723028258500b10ec24cd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142982
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/ctfonts.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index c2f6a8a55c00..92fd35fa2cee 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -268,7 +268,7 @@ hb_blob_t* CoreTextFontFace::GetHbTable(hb_tag_t nTag) const return pBlob; } -const std::vector<hb_variation_t>& CoreTextFontFace::GetVariations() const +const std::vector<hb_variation_t>& CoreTextFontFace::GetVariations(const LogicalFontInstance&) const { CTFontRef pFont = CTFontCreateWithFontDescriptor(mxFontDescriptor, 0.0, nullptr); |