Commit 5f27dd5e authored by Francesco Gazzetta's avatar Francesco Gazzetta
Browse files

skia: fix missing SkFontMgr_New_FontConfig

parent 04a8c1e7
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
diff --git a/src/ports/SkFontMgr_fontconfig.cpp b/src/ports/SkFontMgr_fontconfig.cpp
index 7d6fd62..2cca01d 100644
--- a/src/ports/SkFontMgr_fontconfig.cpp
+++ b/src/ports/SkFontMgr_fontconfig.cpp
@@ -16,6 +16,7 @@
 #include "include/core/SkString.h"
 #include "include/core/SkTypeface.h"
 #include "include/core/SkTypes.h"
+#include "include/ports/SkFontMgr_fontconfig.h"
 #include "include/private/base/SkDebug.h"
 #include "include/private/base/SkMutex.h"
 #include "include/private/base/SkTArray.h"
+7 −0
Original line number Diff line number Diff line
@@ -35,6 +35,13 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-zHfv4OZK/nVJc2rl+dBSCc4f6qndpAKcFZtThw06+LY=";
  };

  patches = [
    # Package ladybird uses SkFontMgr_New_FontConfig, but this version of skia
    # does not export it.
    # https://skia.googlesource.com/skia/+/4bf56844d4a661d7317882cc545ecd978715a11e%5E!/?
    ./export-SkFontMgr_New_FontConfig.patch
  ];

  postPatch = ''
    # System zlib detection bug workaround
    substituteInPlace BUILD.gn \