Skip to content

Commit

Permalink
Fix build with coretext
Browse files Browse the repository at this point in the history
As per release notes, SkShaper::MakeCoreText() is now
SkShapers::CT::CoreText().
  • Loading branch information
tronical committed Jul 13, 2024
1 parent 0a9683d commit 8d7e32c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion skia-bindings/src/shaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
#include "modules/skshaper/include/SkShaper_harfbuzz.h"
#include "modules/skshaper/include/SkShaper_skunicode.h"
#include "modules/skunicode/include/SkUnicode_icu.h"
#ifdef SK_SHAPER_CORETEXT_AVAILABLE
#include "modules/skshaper/include/SkShaper_coretext.h"
#endif

#if defined(_WIN32)
#include "third_party/icu/SkLoadICU.h"
#endif

extern "C" SkShaper* C_SkShaper_MakeCoreText() {
#ifdef SK_SHAPER_CORETEXT_AVAILABLE
return SkShaper::MakeCoreText().release();
return SkShapers::CT::CoreText().release();
#else
return nullptr;
#endif
Expand Down

0 comments on commit 8d7e32c

Please sign in to comment.