diff options
author | Khaled Hosny <khaled@aliftype.com> | 2022-10-29 20:17:35 +0200 |
---|---|---|
committer | خالد حسني <khaled@aliftype.com> | 2022-11-02 23:06:46 +0100 |
commit | 643fec7cf7a81bf8c89a8efd47c0310b38f9076c (patch) | |
tree | 95add7bdb619d55d5ca35ca3258d79bcb9af187a /vcl/inc/quartz | |
parent | 29f318f90d2ed72a807d803094734d5ee7322a2d (diff) |
vcl: add PhysicalFontFace::GetVariations()
Use it to set the variations on hb_font_t, and we will use it for other
things in later commits.
Change-Id: Iae1861f74b38af4921ac97c1facecf0d4815c201
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142024
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/inc/quartz')
-rw-r--r-- | vcl/inc/quartz/salgdi.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/inc/quartz/salgdi.h b/vcl/inc/quartz/salgdi.h index b621e715ef54..f3bab610f08b 100644 --- a/vcl/inc/quartz/salgdi.h +++ b/vcl/inc/quartz/salgdi.h @@ -72,6 +72,8 @@ public: virtual hb_blob_t* GetHbTable(hb_tag_t nTag) const override; + std::vector<hb_variation_t> GetVariations() const override; + private: CTFontDescriptorRef mxFontDescriptor; }; @@ -98,11 +100,8 @@ public: private: explicit CoreTextFont(const CoreTextFontFace&, const vcl::font::FontSelectPattern&); - virtual void ImplInitHbFont(hb_font_t*) override; bool ImplGetGlyphBoundRect(sal_GlyphId, tools::Rectangle&, bool) const override; - void SetFontVariationsOnHBFont(hb_font_t*) const; - CTFontRef mpCTFont; }; |