forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request godotengine#96658 from akien-mga/thorvg-0.14.9
thorvg: Update to 0.14.9
- Loading branch information
Showing
15 changed files
with
72 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 0 additions & 96 deletions
96
thirdparty/thorvg/patches/pr2702-sw_engine-handle-small-cubics.patch
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
thirdparty/thorvg/patches/pr2716-text-drawing-reliability.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 41d67213607e7ff20b7a3ca833f1cfde9780da65 Mon Sep 17 00:00:00 2001 | ||
From: Hermet Park <[email protected]> | ||
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); | ||
} |
13 changes: 13 additions & 0 deletions
13
thirdparty/thorvg/patches/revert-tvgLines-bezier-precision-change.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/thirdparty/thorvg/src/common/tvgLines.cpp b/thirdparty/thorvg/src/common/tvgLines.cpp | ||
index 49d992f127..9d704900a5 100644 | ||
--- a/thirdparty/thorvg/src/common/tvgLines.cpp | ||
+++ b/thirdparty/thorvg/src/common/tvgLines.cpp | ||
@@ -79,7 +79,7 @@ float _bezAt(const Bezier& bz, float at, float length, LengthFunc lineLengthFunc | ||
Bezier left; | ||
bezSplitLeft(right, t, left); | ||
length = _bezLength(left, lineLengthFunc); | ||
- if (fabsf(length - at) < BEZIER_EPSILON || fabsf(smallest - biggest) < 1e-3f) { | ||
+ if (fabsf(length - at) < BEZIER_EPSILON || fabsf(smallest - biggest) < BEZIER_EPSILON) { | ||
break; | ||
} | ||
if (length < at) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters