summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch')
-rw-r--r--thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch b/thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch
new file mode 100644
index 0000000000..c79f7c63d6
--- /dev/null
+++ b/thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch
@@ -0,0 +1,25 @@
+From 41d67213607e7ff20b7a3ca833f1cfde9780da65 Mon Sep 17 00:00:00 2001
+From: Hermet Park <hermet@lottiefiles.com>
+Date: Sat, 7 Sep 2024 01:35:09 +0900
+Subject: [PATCH] renderer: ++reliability in text drawing
+
+Allow the canvas to pass through
+even if text elements are not properly supported.
+
+issue: https://github.com/thorvg/thorvg/issues/2715
+---
+ src/renderer/tvgText.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/thirdparty/thorvg/src/renderer/tvgText.h b/thirdparty/thorvg/src/renderer/tvgText.h
+index 746b85bea6..55d33ffd4b 100644
+--- a/thirdparty/thorvg/src/renderer/tvgText.h
++++ b/thirdparty/thorvg/src/renderer/tvgText.h
+@@ -89,6 +89,7 @@ struct Text::Impl
+
+ bool render(RenderMethod* renderer)
+ {
++ if (!loader) return true;
+ renderer->blend(paint->blend(), true);
+ return PP(shape)->render(renderer);
+ }