skia: fix missing SkFontMgr_New_FontConfig

This commit is contained in:
Francesco Gazzetta 2024-08-12 16:30:32 +02:00
parent 04a8c1e764
commit 5f27dd5e5a
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,12 @@
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"

View File

@ -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 \