Skip to content

ThorVG 1.0.4

Choose a tag to compare

@hermet hermet released this 17 Apr 03:05
· 709 commits to main since this release

This release improves overall engine performance, stability, and memory efficiency while resolving rendering issues across GPU and CPU backends. It expands Lottie capabilities with new features, better standards compliance, and a ~19% performance boost, along with multiple bug and memory leak fixes. SVG and TTF handling have been enhanced for greater accuracy and broader standards support. Additionally, the engine structure and macros have been reorganized to improve portability and maintainability.

🚀 Engines

  • [gl/es] Improved image rendering performance by optimizing texture sharing when identical resources are used multiple times. #4074
  • [gpu] Suppressed sub-quantum thin-fill fallback, eliminating thin-line artifacts in certain visuals. #4245
  • [gpu] Updated hue blend behavior to align with the W3C specification instead of After Effects. #4190
  • [cpu] Improved thread safety in multi-canvas environments.
  • [cpu] Prevented stack overflow caused by large path coordinate values.
  • [cpu] Fixed incorrect buffer stride configuration in post-processing effects. #4325
  • [core] Introduced an internal RenderPath scratch buffer to reduce memory spikes.

✨Lottie

  • Fixed Local Font Text Range Selector factor and world-space translation issues. #4158
  • Reduced binary size by changing expression engine number precision from float64 to float32 (-2.5 KB).
  • Fixed custom effect index mismatch for unsupported types. #4215
  • Added support for TextDoc value types in expressions. #4298
  • Fixed word-boundary line wrapping for local font text boxes.
  • Added support for 3D orientation (or) transform property.
  • Revamped masking behavior with blur effects to correct clipping issues. #3125
  • Fixed heap buffer overflow in Lottie gradient slot overriding. #4315
  • Fixed missing opacity slot overriding in Solid Stroke.
  • Improved URL font text handling to properly support tracking, line height, fill order, and word wrap.
  • Improved expression performance by ~19% using optimized string handling for faster property lookup.
  • Enhanced Rounded Corner to handle previously unsupported sharp corner cases.
  • Fixed several memory leaks.

🖼️ Picture

  • [svg] Added support for mix-blend-mode. #4243
  • [svg] Fixed infinite loop caused by circular <use> element references. #4244
  • [svg] Ignored invalid children of gradient elements to ensure correct rendering output. #3485 #3502
  • [svg] Fixed incorrect behavior of userSpaceOnUse gradients. #1331
  • [svg] Added support for em and ex length units. #2713
  • [svg] Added support for retrieving accessor names. #4217
  • [svg] Fixed several minor issues.

🔤 TTF

  • Fixed space detection in word wrapping using Unicode code points.

🛠️ Portability

  • Improved portability by replacing PATH_MAX-dependent buffers with dynamic allocation.
  • Fixed minor portability issues with ESP32 in Lottie.

🧩API Updates

  • C++ APIs:
+ const char* Accessor::name(uint32_t id)
+ bool Picture::accessible
  • C APIs:
+ tvg_picture_set_accessible()
+ tvg_accessor_name()

✅ Additional Notes

The render backend directory structure has been reorganized (build configuration updated accordingly):

sw_engine -> cpu_engine
gl_engine -> gpu_engine/gl
wg_engine -> gpu_engine/wg

Additionally, engine definition macros have been renamed from RASTER to ENGINE:

THORVG_SW_RASTER_SUPPORT -> THORVG_CPU_ENGINE_SUPPORT
THORVG_GL_RASTER_SUPPORT -> THORVG_GL_ENGINE_SUPPORT 
THORVG_WG_RASTER_SUPPORT -> THORVG_WG_ENGINE_SUPPORT

Full Changelog: v1.0.3...v1.0.4