diff --git a/src/core/vectors/coregraphics/CGTypeface.cpp b/src/core/vectors/coregraphics/CGTypeface.cpp index 538affcd..2781971f 100644 --- a/src/core/vectors/coregraphics/CGTypeface.cpp +++ b/src/core/vectors/coregraphics/CGTypeface.cpp @@ -93,7 +93,7 @@ std::shared_ptr Typeface::MakeFromData(std::shared_ptr data, int return nullptr; } auto cfData = - CFDataCreateWithBytesNoCopy(kCFAllocatorNull, static_cast(data->data()), + CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, static_cast(data->data()), static_cast(data->size()), kCFAllocatorNull); if (cfData == nullptr) { return nullptr;