summaryrefslogtreecommitdiff
path: root/core/fxge/apple
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/apple')
-rw-r--r--core/fxge/apple/fx_apple_platform.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fxge/apple/fx_apple_platform.cpp b/core/fxge/apple/fx_apple_platform.cpp
index cafe44730c..aad97ee4cb 100644
--- a/core/fxge/apple/fx_apple_platform.cpp
+++ b/core/fxge/apple/fx_apple_platform.cpp
@@ -20,6 +20,7 @@
#include "core/fxge/cfx_gemodule.h"
#include "core/fxge/cfx_renderdevice.h"
#include "core/fxge/fx_freetype.h"
+#include "third_party/base/span.h"
#ifndef _SKIA_SUPPORT_
@@ -52,8 +53,8 @@ bool CGDrawGlyphRun(CGContextRef pContext,
if (pFont->GetPsName() == "DFHeiStd-W5")
return false;
- pFont->SetPlatformFont(
- quartz2d.CreateFont(pFont->GetFontData(), pFont->GetSize()));
+ pdfium::span<const uint8_t> span = pFont->GetFontSpan();
+ pFont->SetPlatformFont(quartz2d.CreateFont(span.data(), span.size()));
if (!pFont->GetPlatformFont())
return false;
}