vcl/source/gdi/CommonSalLayout.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 1260bf28fc82616acfc3d0308eb2056ff6572cf2 Author: Khaled Hosny <khaledho...@eglug.org> Date: Wed Nov 2 15:12:59 2016 +0200 Add a comment here Change-Id: I07f2fe400f20d8f52588db326851f310245b7d8d diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx index 6ba8cb6..5e25186 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits