summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-11-02 15:12:59 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-11-02 15:12:59 +0200
commit1260bf28fc82616acfc3d0308eb2056ff6572cf2 (patch)
treeddda30fc3e2256fc1aa126bab4a753f77441e448
parentb1f8cf37828d5f37527e54774aa4935610aa6325 (diff)
Add a comment here
Change-Id: I07f2fe400f20d8f52588db326851f310245b7d8d
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 6ba8cb68427e..5e25186257c2 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -190,6 +190,9 @@ CommonSalLayout::CommonSalLayout(const CoreTextStyle& rCoreTextStyle)
mpHbFont = rCoreTextStyle.GetHbFont();
if (!mpHbFont)
{
+ // On macOS we use HarfBuzz for AAT shaping, but HarfBuzz will then
+ // need a CGFont (as it offloads the actual AAT shaping to Core Text),
+ // if we have one we use it to create the hb_face_t.
hb_face_t* pHbFace;
CTFontRef pCTFont = static_cast<CTFontRef>(CFDictionaryGetValue(rCoreTextStyle.GetStyleDict(), kCTFontAttributeName));
CGFontRef pCGFont = CTFontCopyGraphicsFont(pCTFont, nullptr);