Repository navigation
Releases
ThorVG 1.1.3
This release introduces conic gradients and Motion Blur effects, alongside significant improvements to rendering performance and reliability across the CPU, OpenGL(WebGL), and WebGPU engines. CPU rasterization benefits from expanded SIMD acceleration, including AVX2 support, while GPU optimizations improve stroke rendering performance by up to 2×.
Lottie rendering accuracy has been improved through modifier and expression fixes, while SVG compliance and font compatibility have been further enhanced. This release also strengthens thread safety, partial rendering interface support, and memory safety, resolves multiple security vulnerabilities, and enables SIMD optimizations by default.
🚀 Engines
- [core] Introduce conic gradient support #4347
- [core] Add Motion Blur scene effect support #4845
- [core] Fix incorrect bounds calculations for chained scene effects
- [core] Ensure thread-safe engine initialization and shutdown
- [core] Introduce a canvas dirty-region interface for partial updates #4214
- [cpu] Expand SIMD acceleration to grayscale, blur, drop shadows, and color conversion for improved performance #29 #30
- [cpu] Upgrade x86 SIMD support to AVX2 #29
- [cpu] Introduce runtime SIMD detection and fallback support #29
- [cpu] Improve dashed stroke rendering accuracy #2925 #2094
- [cpu] Fix a gradient-related memory access violation #4852
- [gpu] Fix hit testing for unfilled shapes and ensure correct fill-rule handling
- [gl] Optimize opaque stroke rendering with stencil passes, achieving up to 2× faster performance
- [wgpu] Fix scene effect chaining to ensure all effects are applied correctly
- [wgpu] Respect canvas clear behavior #4557
- [wgpu] Eliminate redundant stencil passes for improved stroke rendering performance up to ~30%
✨ Lottie
- Fix incorrect modifier chaining order #3539
- Generate cubic segments for modifier lines to improve rendering accuracy #3539
- Fix incorrect color expression conversions #4907
- Fix missing offset points following degenerate cubic segments in the Offset Paths modifier
- Validate audio asset types for improved robustness
- Resolve reported security vulnerabilities GHSA-p88x-f767-g2qp GHSA-p53f-r8c4-vfpf GHSA-ggr5-pgqr-5hmh
🖼️ Picture
- [svg] Improve SVG compliance for circle and ellipse radius handling #4840
- [svg] Ignore invalid stroke-dasharray values #4877
- [svg] Apply CSS rules from all <style> elements for improved SVG compliance #4871
- [webp] Fix a heap buffer overflow in VP8L Huffman table construction
🔤 Font
- [ttf] Add support for Apple kern table version 1 and legacy Unicode cmap formats #4917
🛠️ Build & Infrastructure
- SIMD is now enabled by default and SIMD compile-time definition maco has been updated.
THORVG_AVX_VECTOR_SUPPORT -> THORVG_AVX_SUPPORT
THORVG_NEON_VECTOR_SUPPORT -> THORVG_NEON_SUPPORT
🧩 API Updates
- C++
+ Type::ConicGradient
+ struct ConicGradient : Fill
+ Result ConicGradient::conic(float cx, float cy, float angle) noexcept
+ Result ConicGradient::conic(float* cx, float* cy, float* angle = nullptr) const noexcept
+ static ConicGradient* ConicGradient::gen() noexcept
+ Type ConicGradient::type() const noexcept
+ Result Scene::add(SceneEffect::MotionBlur, distance, angle, quality)
+ ColorSpace::XBGR8888
+ ColorSpace::XRGB8888
+ struct Region
+ uint32_t Canvas::dirtyRegions() const
+ Result Canvas::dirtyRegions(Region*, uint32_t) const
- CAPI
+ TVG_TYPE_CONIC_GRAD
+ Tvg_Gradient tvg_conic_gradient_new(void)
+ Tvg_Result tvg_conic_gradient_set(Tvg_Gradient grad, float cx, float cy, float angle)
+ Tvg_Result tvg_conic_gradient_get(Tvg_Gradient grad, float* cx, float* cy, float* angle)
+ Tvg_Result tvg_scene_add_effect_motion_blur(Tvg_Paint scene, double distance, double angle, int quality)
+ TVG_COLORSPACE_XBGR8888
+ TVG_COLORSPACE_XRGB8888
+ Tvg_Region
+ uint32_t tvg_canvas_get_dirty_regions_cnt(Tvg_Canvas)
+ Tvg_Result tvg_canvas_get_dirty_regions(Tvg_Canvas, Tvg_Region*, uint32_t)
✅ Additional Notes
To explicitly disable SIMD optimizations, use the Meson build option -Dsimd=false.
Full Changelog: v1.1.2...v1.1.3
ThorVG 1.1.2
This release delivers broad rendering performance improvements across the CPU, OpenGL, and WebGPU engines. CPU image downscaling is now accelerated with AVX and NEON, raster operations have been parallelized, and redundant path copying has been eliminated. The GPU backends also reduce rendering overhead through improved batching, streamlined geometry processing, fewer buffer uploads, and reduced pipeline state changes.
Lottie support has been expanded with additional slot-overridable properties, master volume controls, and more reliable audio playback. This release also adds SVG rgba() color support, CID-keyed CFF font support, and direct grayscale image rendering, along with important fixes for clipping, gradients, alpha premultiplication, partial rendering, malformed JPEG input, and clip/mask lifetime management.
🚀 Engines
- [core] Reported
NonSupportwhen SFNT loaders or file I/O are disabled. #4670 - [core] Optimized animation updates by propagating changes without invalidating all child render data. #4580
- [core] Fixed trim paths losing their initial
moveTo()command during wrap-around, which could cause rendering artifacts. #4800 - [core] Fixed dangling parent pointers in clip and mask relationships.
- [cpu] Improved the thread safety of texture-mapping operations.
- [cpu] Fixed flickering during partial rendering. #4566
- [cpu] Added direct rendering support for grayscale images. #4716
- [cpu] Optimized RLE clipping complexity from
O(N×M)toO(N+M). - [cpu] Added OpenMP support for image scaling, improving performance by up to ~
2x. - [cpu] Fine-tuned non-alpha image scaling, improving rasterization performance by ~
3%. - [cpu] Corrected the anti-aliasing quality of repeating gradients. #4688
- [cpu] Improved the robustness of 8-bit gradient rasterization.
- [cpu] Added NEON and AVX implementations for image downscaling, improving performance by up to ~
35%. #30 - [cpu] Streamlined internal path processing by eliminating a redundant path-copying stage. #3100
- [gpu] Reduced repeated-image rendering overhead, improving performance by more than
2xin applicable scenarios. - [gpu] Corrected premultiplied-alpha anti-aliasing artifacts. #4041
- [gl/es] Added support for configurable blur quality levels.
- [gl/es] Optimized intersection hit testing, improving performance by ~
70–90%.
✨ Lottie
- Expanded slot overriding support to cover several previously unsupported properties.
- Corrected playback clamping at the final animation frame.
- Fixed opacity being applied twice to solid layers.
- Fixed and stabilized audio offsets for trimmed layers.
- Added an API to query whether expression support is enabled.
- Improved solid-color hexadecimal conversion.
- Added master volume controls for media assets.
- Fixed matte sources being hidden when referenced through the
tpproperty.
🖼️ Picture
- [svg] Fixed invalid pointer comparisons during style parsing.
- [svg] Added proper support for
rgba()colors in fills and strokes. - [jpg] Fixed a buffer overflow caused by malformed JPEG input and improved loader stability. GHSA-mw4c-w54x-248r
🔤 Font
🛠️ Build & Infrastructure
- Fixed SIMD detection on AArch64 CPUs.
🧩 API Updates
- C++ APIs:
+ Result::SystemError
+ void* Paint::data
+ uint32_t Fill::colorStops(const ColorStop** colorStops = nullptr) const
+ Result LottieAnimation::volume(float value)
+ float LottieAnimation::volume() const
+ static bool LottieAnimation::expressions()- C APIs:
+ TVG_RESULT_SYSTEM_ERROR
+ Tvg_Result tvg_paint_set_data(Tvg_Paint paint, void* data)
+ void* tvg_paint_get_data(const Tvg_Paint paint)
+ bool tvg_lottie_animation_expressions_supported()
+ Tvg_Result tvg_lottie_animation_set_volume(Tvg_Animation animation, float volume)
+ float tvg_lottie_animation_get_volume(const Tvg_Animation animation)✅ Additional Notes
The Paint::data field and its corresponding C APIs provide opaque storage for user-defined data. ThorVG neither interprets this value nor manages the lifetime of the referenced data.
Full Changelog: v1.1.1...v1.1.2
ThorVG 1.1.1
This release introduces an experimental video playback API with Apple and Web platform support, along with video playback for Lottie image assets. Rendering performance has been significantly improved across the OpenGL and WebGPU backends through reduced state changes and expanded batching.
SVG support has been enhanced with additional text attributes, improved clipping behavior, and XML entity decoding. This release also improves image color accuracy through embedded PNG ICC profile conversion and higher-quality GIF palette generation, while addressing multiple crashes, memory issues, and malformed-input vulnerabilities across the loaders and rendering engines.
🚀 Engines
- [cpu] Fixed a crash when retrieving the bounds of an unprepared stroked shape.
- [gl/es] Optimized gradient rendering performance by approximately up to
1.67x. #4555 - [wgpu] Improved convex and non-convex fill performance by approximately up to
2xthrough optimized batching.
✨ Lottie
- Added support for video playback in Lottie image assets. #4635
- Added slot overriding support for time-remapping properties.
- Fixed the lifetime of embedded font data shared between Lottie compositions. #4636
- Fixed a font loader reference-count leak when cached font data is loaded repeatedly.
- Fixed an image ownership regression that could cause memory leaks.
- Improved image and audio asset source handling.
- Hardened gradient and text asset parsing against malformed input. (GHSA-58fm-6wm4-6xp6 GHSA-wcpm-fj7g-q6fg GHSA-pc87-qp47-c96r GHSA-88w8-mjr4-5hw5)
🖼️ Picture
- [svg] Added support for the
alignment-baseline,dominant-baseline,font-weight,letter-spacing, andword-spacingattributes. #4107 #4538 - [svg] Improved
clipPathcomposition by supporting unions of multiple children and nested clip paths. #2928 - [svg] Added decoding for predefined and numeric XML entities. #4584
- [svg] Optimized named-color lookup using binary search.
- [svg] Preserved inherited text styles when invalid attribute values are specified.
- [svg] Fixed a crash caused by malformed
font-facedeclarations. #4605 - [svg] Fixed out-of-bounds reads and memory corruption caused by malformed XML elements. (GHSA-7c8w-36jw-m7hj GHSA-c2qc-59qf-xpr9)
- [png] Added conversion of supported embedded ICC color profiles to sRGB. #4536
- [png] Fixed a memory leak when loading invalid PNG files. #4673
- [jpg] Fixed a buffer overflow when loading malformed JPEG files. (GHSA-v45v-rfh3-xmp4)
🎬 Media
- Added an experimental
Videoplayback API supporting play, pause, stop, seek, loop, volume, mute, playback time, and duration controls. - Added Apple video playback support using AVFoundation.
- Added a Web video playback glue layer for integration with JavaScript media players.
🎞️ GIF Saver
- Improved palette generation to preserve infrequently used colors and correctly handle transparent pixels. #1758
- Separated palette quantization from the k-d tree used for color lookup, improving both color accuracy and search performance. #4669
🛠️ Build & Infrastructure
- Made the OpenMP dependency mandatory when OpenMP support is enabled, allowing missing dependencies to be reported during Meson configuration. #4581
- Added Objective-C++ compiler configuration for video playback on iOS targets.
🧩 API Updates
- C++ APIs:
+ static Video* Video::gen()
+ Result Video::play()
+ Result Video::pause()
+ Result Video::stop()
+ Result Video::seek(float seconds)
+ Result Video::loop(bool on)
+ bool Video::loop()
+ Picture* Video::picture() const
+ float Video::time() const
+ float Video::duration() const
+ Result Video::volume(float volume)
+ float Video::volume() const
+ Result Video::mute(bool on)
+ bool Video::muted() const
- CAPIs:
+ Tvg_Video tvg_video_new()
+ Tvg_Result tvg_video_del(Tvg_Video video)
+ Tvg_Paint tvg_video_get_picture(Tvg_Video video)
+ Tvg_Result tvg_video_play(Tvg_Video video)
+ Tvg_Result tvg_video_pause(Tvg_Video video)
+ Tvg_Result tvg_video_stop(Tvg_Video video)
+ Tvg_Result tvg_video_seek(Tvg_Video video, float seconds)
+ Tvg_Result tvg_video_set_loop(Tvg_Video video, bool on)
+ bool tvg_video_get_loop(Tvg_Video video)
+ Tvg_Result tvg_video_set_volume(Tvg_Video video, float volume)
+ float tvg_video_get_volume(Tvg_Video video)
+ Tvg_Result tvg_video_set_mute(Tvg_Video video, bool on)
+ bool tvg_video_get_muted(Tvg_Video video)
+ float tvg_video_get_time(Tvg_Video video)
+ float tvg_video_get_duration(Tvg_Video video)
✅ Additional Notes
Video playback is introduced as an experimental feature and can be enabled using the following Meson configuration -Dloaders=media. The corresponding compile-time definition is:
THORVG_MEDIA_LOADER_SUPPORT
Full Changelog: v1.1.0...v1.1.1
ThorVG 1.1.0
ThorVG brand designed by LottieFiles
Following the major architectural milestone of ThorVG v1.0, this release focuses on refining the engine for real-world production use. ThorVG v1.1 delivers significant improvements in rendering performance, standards compliance, platform integration, and developer experience—making the engine faster, more compatible, and easier to integrate across diverse environments.
This release introduces substantial optimizations for the GPU rendering pipeline, expands support for the Lottie and SVG specifications, adds experimental OpenType (OTF) font support, and further enhances the WebCanvas ecosystem with a pluggable font architecture and multi-threading support. Together, these improvements strengthen ThorVG as a lightweight, high-performance vector graphics engine capable of serving everything from embedded systems to modern web and desktop applications.
Beyond the rendering engine itself, v1.1 continues to expand the ThorVG ecosystem with new platform integrations, improved tooling, and interactive demonstrations that simplify adoption and showcase real-world capabilities. These efforts reflect ThorVG's continued evolution as a production-ready vector graphics platform for cross-platform graphics applications.
What's New in v1.1?
Following the major architectural milestone of v1.0, ThorVG v1.1 focuses on refining rendering quality, expanding format compatibility, and strengthening the overall development ecosystem. This release delivers significant improvements across rendering performance, standards compliance, platform integration, and developer workflows—making ThorVG faster, more compatible, and easier to integrate into real-world applications.
- Significant GPU rendering performance improvements through rendering pipeline optimizations and batching enhancements
- More accurate and consistent stroke rendering, delivering improved visual fidelity across CPU and GPU engines
- Experimental OpenType (OTF) font support together with an enhanced font loading architecture for WebCanvas
- Expanded Lottie animation capabilities, including experimental Dynamic Tweening and faster Expressions processing
- Improved Lottie and SVG specification compliance, delivering better compatibility with real-world content
- New platform and ecosystem enhancements, including Android OpenGL support, WebCanvas multi-threading, and pluggable font providers
- Continued improvements in rendering quality, stability, and overall production readiness
Please read the full release notes here: thorvg-v1-1-raising-the-standard
Full Changelog: v1.0.0...v1.1.0
Contributors & Supporters
We would like to extend our deepest thanks to all the contributors, developers, and early adopters who helped shape ThorVG v1.1. Your code, feedback, and passion have been instrumental in making this release possible.
@hermet @tinyjin @wenjieshen @vtorri @BenjaminHalko @ShinyChang @Nor-s @theashraf @mbasaglia @huming2207 @JSUYA @mgrudzinska @jmkim @ephemer @ephemer @reallynattu @alpakaDurumi
A special thank you goes to LottieFiles for their continued support and collaboration. Their insights, technical feedback, and real-world use cases have been invaluable in guiding ThorVG’s evolution — particularly in shaping its Lottie animation capabilities and web integration. ThorVG has grown stronger and more versatile thanks to their active engagement.
Together, we’re building something powerful — lightweight, open, and ready for the future of vector graphics!
ThorVG 1.0.7
This release delivers significant performance improvements across the CPU, OpenGL(WebGL), and WebGPU rendering backends, with up to 2x faster rendering in key scenarios. It also expands Lottie compatibility through enhanced expression support, new shape modifiers, and improved text layout. In addition, numerous fixes and SVG enhancements improve rendering accuracy, stability, portability, and overall robustness across platforms.
🚀 Engines
- [core] Properly support raw bitmap reloading in
Picture::load(). (#4473) - [cpu] Optimized RGB image rendering, delivering
1.1x–2.0xfaster performance for both scaled and direct rendering. (#3456) - [cpu] Added support for grayscale RLE image rendering.
- [gl/es] Optimized rendering by merging stencil cover tasks, improving rendering performance by up to
2x. (#4260) - [gl/es] Fixed missing texture data uploads when bitmap content is updated.
- [webgl] Fixed a scene effect portability issue caused by uniform memory layout differences. (#4129)
- [wgpu] Prevent unsupported surface present modes from being applied, improving system portability.
- [wgpu] Added the WebGPU context target Experimental API.
- [wgpu] Added support for straight-alpha surface output.
✨Lottie
- [expressions] Improved Lottie compatibility by expanding content() shape coverage. (#4394)
- [expressions] Correctly handle 1D wrapper objects as scalar values. (#4393)
- Added support for the
ZigZagshape modifier. (#2681) - Allow URL Text tracking values to be negative.
- Corrected text box vertical alignment. (#4334)
- Fixed local font word-wrapping overflow issues.
- Fixed mid-word breaks in local font word wrapping. (#4490)
- Fixed incorrect gradient tween interpolation.
- Fixed incorrect path tween transformations when shape modifiers are applied.
- Fixed an infinite loop that could cause a crash. (#4432)
🖼️ Picture
- [svg] Fixed a regression affecting
userSpaceOnUsegradient scaling when no viewport is specified. (#4421) - [svg] Fixed regressions in text and
tspanpositioning. (#4421) - [svg] Added support for the
maskUnitsattribute. (#3342)
🔤 Font
- Fixed a crash when duplicating text object.
- Improved robustness by adding exception handling for security-related edge cases. (GHSA-crfw-c34f-vqrj)
🧩API Updates
- C++ APIs:
* Result Text::metrics(const char* ch, GlyphMetrics& metrics) const;
-> Result Text::metrics(const char* ch, GlyphMetrics& metrics, const char** next = nullptr) const
+ Result WgCanvas::target(const Context& context, void* target, uint32_t w, uint32_t h, ColorSpace cs, int type = 0)
- C APIs:
* Tvg_Result tvg_text_get_glyph_metrics(const Tvg_Paint text, const char* ch, Tvg_Glyph_Metrics* metrics)
-> Tvg_Result tvg_text_get_glyph_metrics(const Tvg_Paint text, const char* ch, Tvg_Glyph_Metrics* metrics, const char** next)
+ Tvg_Result tvg_wgcanvas_set_target_with_context(Tvg_Canvas canvas, const Tvg_WgContext* context, void* target, uint32_t w, uint32_t h, Tvg_Colorspace cs, int type);
Full Changelog: v1.0.6...v1.0.7
ThorVG 1.0.6
This release improves rendering quality, scalability, and standards compliance across CPU, GPU, and GL/ES engines. Stroke rendering accuracy, large-scale rasterization support, colorspace handling, and blending behavior have been enhanced, while several rendering regressions and robustness issues were fixed. Lottie now supports Audio layers, and SVG gradient rendering has been corrected for improved compatibility.
🚀 Engines
- [core] Improved colorspace handling in image loaders for more accurate engine data transfer.
- [cpu] Added an experimental Aliased Rendering option. #4381
- [cpu] Revised path processing to improve stroke rendering accuracy. #4354, #3593, #2758, #1925, #954, #4287
- [cpu] Updated Soft Light, Hue, Saturation, Color, and Luminosity blending from Adobe to W3C specifications. #4190
- [gpu] Fixed an issue with stroke transformations introduced by the previous world-space stroke tessellation optimization. #4354 #4408
- [gl/es] Fixed incorrect rendering of uncorrectable radial gradients by using the final gradient stop as a solid color fallback. #4407
- [gl/es] Corrected Gaussian blur sampling to ensure sampling remains within valid regions. #4132
- [gl/es] Improved overall robustness with several minor fixes.
✨Lottie
- Added support for the LottieLayer Audio type. #4226
- Removed the experimental
Property Assignfeature. - Improved overall robustness with several minor fixes.
🖼️ Picture
- [svg] Fixed a regression affecting userSpaceOnUse gradient scaling when no viewport is specified. #4421
🧩API Updates
- C++ APIs:
+ enum struct EngineOption::Aliased
+ struct tvg::AudioInfo
+ Result LottieAnimation::audioResolver(std::function<void(const AudioInfo&, void*)> func, void* data)
- Result LottieAnimation::assign(const char* layer, uint32_t ix, const char* var, float val)
- C APIs:
+ TVG_ENGINE_OPTION_ALIASED
+ struct Tvg_Audio_Info
+ void (*Tvg_Audio_Resolver)(const Tvg_Audio_Info* info, void* data)
+ Tvg_Result tvg_lottie_animation_set_audio_resolver(Tvg_Animation animation, Tvg_Audio_Resolver resolver, void* data)
- Tvg_Result tvg_lottie_animation_assign(Tvg_Animation animation, const char* layer, uint32_t ix, const char* var, float val)
Full Changelog: v1.0.5...v1.0.6
ThorVG 1.0.5
ThorVG v1.0.5 introduces major improvements across rendering engines, Lottie, SVG, and font handling. This release enhances rendering quality and performance, adds multi-threaded Lottie expression support, and improves parser robustness and exception handling. Basic OTF glyph parsing and rendering support has been added as an experimental feature, alongside expanded SVG text attribute support. The update also includes large-scale rasterization support and multiple rendering correctness fixes across GPU backends.
🚀 Engines
- [gpu] Improved stroke quality for closed dashed joins within a single contour. #4270
- [wgpu] Improved image rendering performance by optimizing texture sharing for repeatedly used identical resources. #4074
- [gl/es] Fixed incorrect rendering of single-stop gradients. #4344
- [cpu] Expanded the internal rasterization data field from 16-bit to 32-bit to support larger-scale rasterization.
✨Lottie
- [expressions] Fixed an opacity data range overflow issue.
- [expressions] Properly enabled
inPoint/outPointaccess in the global scope. - [expressions] Added multi-threaded processing support. #2256
- Improved parsing support for image data MIME type variants.
- Enhanced robustness and exception handling.
🖼️ Picture
- [svg] Added support for text-anchor, tspan, and dx/dy attributes. #4107
- [svg] Improved parsing support for image data MIME type variants. #4369
- [svg] Improved robustness and exception handling. [GHSA-f863-8ghq-7h64]
🔤 Font
✅ Additional Notes
OTF font support has been newly introduced with as an experimental feature and can be enabled through the build configuration using loaders=otf or loaders=all. The corresponding compile-time definition is:
THORVG_SFNT_LOADER_SUPPORT
THORVG_OTF_LOADER_SUPPORT
The repository structure has also been updated:
thorvg/src/loaders/ttf -> thorvg/src/loaders/sfnt
Full Changelog: v1.0.4...v1.0.5
ThorVG 1.0.4
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
userSpaceOnUsegradients. #1331 - [svg] Added support for
emandexlength 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
ThorVG 1.0.3
In this release, engine-wide improvements enhance thread safety and rendering quality across GPU and CPU, including reduced rendering burdens and up to ~7% FPS gains. Lottie gains new features like Pucker/Bloat support alongside improved path handling, blending, and text alignment. Additionally, fixes in SVG and TTF strengthen rendering correctness and overall stability.
🚀 Engines
- [core] Improved thread safety for multi-canvas rendering on worker threads #4120
- [gpu] Enhanced Soft Light and color blending accuracy to better align with W3C specifications. #4190
- [gpu] Fine-tuned Black/White tessellators, resulting in ~7% FPS performance improvement. #4141
- [cpu] Fine-tuned nested blending in masking composition, eliminating one render pass.
- [cpu] Fixed unintended halo artifacts by properly handling degenerate radial gradients with near-zero radius. #4253
- [cpu] Fixed radial gradient rendering to produce correct visuals for near-zero radius. #3803
✨Lottie
- Corrected image asset path resolution to prevent unintended subdirectory inclusion. #4208
- Added support for Pucker/Bloat shape modifier. #3801 #2681
- Fixed incorrect height alignment in URL-based text.
- Optimized blending and matte handling in all-in-one composition scenarios.
- Improved visual accuracy of the OffsetPath shape modifier.
🖼️ Picture
- [svg] Fixed incorrect clip-path and filter rendering when processing the normal scene tree. #4213
- [svg] Assigned appropriate IDs to grouped paints for improved user accessibility. #4218
🔤 TTF
- Improved robustness by resolving a minor memory violation issue.
Full Changelog: v1.0.2...v1.0.3
ThorVG 1.0.2
This release improves ThorVG’s rendering engines with enhanced performance, thread-safety, and multiple visual artifact fixes across CPU, WebGPU, and OpenGL backends. Lottie support has been expanded with better text rendering, animation stability improvements, and additional expression features. Several APIs and rendering pipeline refinements were introduced to improve flexibility and correctness. Additionally, third-party license notices were added to the LICENSE file to clarify the licensing of bundled components that may be conditionally included at build time.
🚀 Engines
- [core] Added Image Filter API for rendering quality control. #4126
- [core] Added Glyph Metrics API support. #3397
- [core] Fine-tuned the SceneEffect & blending composition pipeline and fixed premultiplied pixel issues.
- [core] Added missing custom new[] / delete[] allocators. #4153
- [core] Fixed incorrect TextMetrics scale computation.
- [cpu] Improved thread-safety in partial rendering.
- [cpu] Enhanced memory pool strategy to support running engines across multiple threads.
- [gpu] Fixed rendering artifact regression caused by the colinear merge optimization. #4154
- [wgpu] Baked transforms into geometry and decoupled solid from paint UBO, resulting in ~4% FPS improvement. #4134
- [gl/es] Fixed broken shape blending inconsistency. #4171
- [gl/es] Fixed additional visual artifact regression caused by scene blend source/extent mismatch. #4187
- [gl/es] Improved performance by batching compatible solid-color draw calls, achieving ~12% FPS improvement. #4002
✨Lottie
- Fixed solid fill color distortion with proper interpolation clamping.
- Added italic text rendering support for URL fonts.
- Corrected gradient fill transform compensation in fragmented rendering contexts.
- Fixed stale scene data when rebuilding animations while paused. #4169
- Added marker segment query APIs. #4167
- Improved overall stability with additional bug fixes. #4196
- [expressions] Aligned
wiggleeffect behavior with After Effects. - [expressions] Added
.valueaccessor for numeric types. #3896 - [expressions] Fixed
toFixed()rounding bug. - [expressions] Added support for
$bm_modandtangentOnPath().
🧩API Updates
- C++APIs:
+ Result Text::metrics(const char* ch, GlyphMetrics& metrics)
+ const char* Text::text() const
+ uint32_t Text::lines()
+ enum struct FilterMethod::Bilinear
+ enum struct FilterMethod::Nearest
+ Result Picture::filter(FilterMethod method)
+ const char* LottieAnimation::marker(uint32_t idx, float* begin, float* end);
- C APIs:
* Tvg_Result tvg_text_get_metrics(const Tvg_Paint text, Tvg_Text_Metrics* metrics)
-> Tvg_Result tvg_text_get_text_metrics(const Tvg_Paint text, Tvg_Text_Metrics* metrics)
+ Tvg_Result tvg_text_get_glyph_metrics(const Tvg_Paint text, const char* ch, Tvg_Glyph_Metrics* metrics)
+ const char* tvg_text_get_text(Tvg_Paint text)
+ uint32_t tvg_text_line_count(Tvg_Paint text)
+ enum TVG_FILTER_METHOD_BILINEAR
+ enum TVG_FILTER_METHOD_NEAREST
+ Tvg_Result tvg_picture_set_filter(Tvg_Paint picture, Tvg_Filter_Method method)
+ const char* marker(uint32_t idx, float* begin, float* end)
+ uint32_t tvg_paint_get_id(const Tvg_Paint paint);
+ Tvg_Result tvg_paint_set_id(Tvg_Paint paint, uint32_t id)
✅ Additional Notes
Please note that in this release, ThorVG added third-party license notices to the LICENSE file to clarify the licensing of bundled third-party components that may be conditionally included during the build process.
- src/loaders/lottie/rapidjson/ RapidJSON (MIT) license
- src/loaders/lottie/jerryscript/ JerryScript (Apache-2.0) license
- src/loaders/webp/ WebP/libwebp (BSD-3-Clause) license
Full Changelog: v1.0.1...v1.0.2
