Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fonts on macOS by using the right macro #1

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/skia/Font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <src/ports/SkFontHost_FreeType_common.h>
#endif

#ifdef __apple__
#ifdef __APPLE__
#include "include/ports/SkFontMgr_mac_ct.h"
#endif

Expand All @@ -31,7 +31,7 @@ bool g_factory_called = false;
} // namespace

static sk_sp<SkFontMgr> fontmgr_factory() {
#if defined(__apple__)
#if defined(__APPLE__)
return SkFontMgr_New_CoreText(nullptr);
#elif defined(__linux__)
return SkFontMgr_New_FontConfig(nullptr);
Expand Down