Vendor femtovg 0.23.2 with a targeted patch: the swash raster path can fail to scale some variable fonts at a non-default variation instance (the CFF2-based CJK system fonts on modern macOS), and femtovg cached those glyphs as permanently missing — so track titles and any other text at medium/semibold/bold weight rendered blank for CJK while regular weight (empty coords) worked. render_glyph now retries the glyph at the font's default instance before giving up: worst case the glyph draws at regular weight instead of not at all. Fonts and instances that already render are untouched. Fixes #543 cc
13 KiB
13 KiB
Changelog
All notable changes to this project will be documented in this file.
0.23.2 - 2026-04-13
- Fall back to path rendering for glyphs under non-translation transforms.
0.23.1 - 2026-03-31
- Fix variable font glyph caching returning wrong variation instance when using swash. Stale normalized coordinates in swash's ScaleContext could cause glyphs from a previous variation (e.g. bold) to appear for subsequent default-instance renders.
0.23.0 - 2026-03-30
- Added variable font support. New methods on
Paint:set_font_weight(),set_font_italic(),set_font_slant(), and genericset_font_variation()with corresponding getters,with_builders, andclear_methods. - Added named font weight constants on
Paint(FONT_WEIGHT_THINthroughFONT_WEIGHT_BLACK). - Added
Canvas::font_variation_axes()to query available variation axes for variable fonts, and newVariationAxisInfopublic type. - Breaking:
Canvas::fill_glyph_run()andCanvas::stroke_glyph_run()now take an additionalnormalized_coords: &[i16]parameter for variable font axis positions. Pass&[]for default behavior. - Replaced bundled Roboto with Roboto Flex for examples and added slant support with italic fallback.
0.22.0 - 2026-03-26
- WGPU: Changed API from
flush_to_surface()toflush_to_output()and accept a type that can be converted to a new WGPURenderOutput struct, making it possible to render into texture views. - WGPU: Simplified CommandBuffer to be an Option<>, so that it can be
passed to queue's
submit()without additional wrapping.
0.21.0 - 2026-03-23
- Re-release 0.20.5 as 0.21 as the glow dependency upgrade is a public dependency that came with a new major version.
0.20.5 - 2026-03-23
- Fix text rendering with wgpu and mesa versions that have difficulties with pipeline override constants.
- Make the ttf-parser dependency optional.
0.20.4 - 2026-02-23
- Fix occasional fringes around swash rendered glyphs caused by uninitialized padding.
- Ported examples to latest winit/glutin/parley/cosmic-text versions.
0.20.3 - 2026-02-18
- Upgraded swash to the latest version.
0.20.2 - 2026-02-18
- Added
swashfeature to enable rasterization of glyphs with swash instead of the built-in path renderer.
0.20.1 - 2026-01-15
- Lowered MSRV requirement as it's only opt-in via wgpu feature.
0.20.0 - 2026-01-14
- Bumped wgpu dependency to wgpu-28
- Bumped MSRV to 1.92
0.19.3 - 2025-10-13
- Fix regression in text rendering performance.
0.19.2 - 2025-10-10
- Fix erroneous glyph position regression of commit a1e215782a60df7e4fde9271fe7f95c134ac832f that accidentally subtracted bearing.
0.19.1 - 2025-10-08
- Fix docs.rs build
0.19.0 - 2025-10-07
- Bump MSRV to 1.88.
- breaking: Upgraded WGPU renderer to use WGPU 27.x.
- breaking: Make text layout an optional feature
0.18.1 - 2025-09-25
- Fix regression causing panic when rendering text.
0.18.0 - 2025-09-25
- Added API to drawing runs of glyphs from the same font.
0.17.0 - 2025-09-05
- Bump MSRV to 1.85.
- Added support for conical gradients.
0.16.0 - 2025-08-03
- Bumped WGPU renderer to use WGPU 26.x.
0.15.0 - 2025-07-03
- Bumped WGPU renderer to use WGPU 25.x.
0.14.1 - 2025-06-14
- Fixed accidental rendering of newline (and other control characters) when using the Inter font. (#236) (thanks @peterprototypes)
- WGPU renderer: Fixed panic when rendering empty scenes.
0.14.0 - 2025-03-24
- Bump MSRV to 1.84.
- Fixed WGPU web rendering (thanks @JoshBurbidge)
0.13.0 - 2025-01-29
- Bump MSRV to 1.81.
- Bump wgpu to 0.24.
- breaking: The WGPU renderer is now constructed with a wgpu Device/Queue ithat's not wrapped in an Arc anymore. These types implement clone themselves.
0.12.0 - 2025-01-14
- WGPU renderer: Changed
flush_to_surface()API to return a command buffer, to let the application decide when to submit. - Bumped glow dependency.
0.11.3 - 2024-12-26
- WGPU renderer: Fix crash when rendering without always calling
set_size(). (#226)
0.11.1 - 2024-11-17
- No code changes, just a release for docs.rs.
0.11.0 - 2024-11-17
- Added WGPU renderer, behind
wgpufeature flag. - Fixed rendering of glyphs with overlaps (#183). Thanks to Richard Hozák.
- Bumped MSRV to 1.76.
0.10.1 - 2024-10-24
- Fix accidental breakage with scissor clipping.
0.10.0 - 2024-10-23
- breaking: Removed the mutable reference of self in
newconstructor for Transform2D - Implemented arithmetic operations for
Transform2D - Completed and improved documentation
- breaking: Removed methods
multipyfromTransform2D, since arithmetic operations are defined forTransform2Dnow. - breaking: Renamed
Transform2Dmethodsinversedtoinverseandinversetoinvert. - breaking: Renamed
Transform2Dconstructornew_translationtotranslationand added new constructorsrotationandscaling. - Reimplemented
Transform2Dtransformation functions (translate,rotate,scale,skew_x,skew_y) to do what they are supposed to. - breaking: glow dependency bumped.
0.9.2 - 2024-06-27
- Fix path rendering where the default path solidity would interfere with the path's own winding direction (https://github.com/femtovg/femtovg/issues/124)
- Fix blurry text rendering when drawing on non-integer coordinates
- Bumped MSRV to 1.68.
0.9.1 - 2024-04-12
- Fixed inability to introspect
Pathverbs by makingPathIterandVerbpublic. - Fixed rendering of text strokes with large font sizes.
0.9.0 - 2024-02-27
- breaking: Removed pub key field in ImageId. This accidentally exposed the implementation detail of the image store (generational-arena), which has been replaced with slotmap.
- For WASM builds, require WebGL 2. This is supported by all major browsers
and needed to make
ImageFlags::REPEAT_X/Ywork. - Bumped MSRV to 1.66.
0.8.2 - 2024-01-20
- Improved performance when rendering large texts.
- Replace error logging to stderr with use of log crate.
0.8.1 - 2023-12-18
- Fix documentation build on docs.rs.
0.8.0 - 2023-11-02
- Re-release 0.7.2 with major version bump. 0.7.2 was yanked because glow is a re-exported public dependency, that was bumped.
0.7.2 - 2023-11-02
- Bump internal dependencies.
0.7.1 - 2023-06-14
- Fix performance regression when drawing unclipped image path fills.
0.7.0 - 2023-05-26
Changed
- Path drawing functions now take a
&Pathinstead of a&mut Pathand use interior mutability for caching.
0.6.0 - 2023-02-06
Changed
- Changed
linear_gradient_stopsandradial_gradient_stopsto take anIntoIteratorinstead of a slice slice for the color stops.
0.5.0 - 2023-02-06
Added
- added a new
Sizestruct, having awidthand aheight. - added
sizefunction toImagetype, which returns both,widthandheightas aSize
Changed
- Renamed
draw_glyph_cmdstodraw_glyph_commands. - Renamed
DrawCmdtoDrawCommand. set_transformtakes a value of typeTransform2Dnow instead of a parameter list.dimensionsofImageSourcereturns a newSizetype now.
0.4.0 - 2023-01-27
Added
OpenGl::new_from_function_cstrto create the renderer from a GL loading function that takes an&std::ffi::CStr.
Fixed
- Fixed erroneously multiply applied global alpha when mixing color glyphs with regular glyphs.
Changed
- MRSV was bumped to Rust 1.63, the crate now uses Rust Edition 2021.
new_from_glutin_contextcan now be used with headless contexts.- All const-safe
Colorconstructors are now const. Canvas's text layout methods no longer require a mutable reference.- Removed the copy trait from
Paintto avoid accidental copies. Paintis always supplied by reference now.TextContext'sresize_shaping_run_cacheandresize_shaped_words_cachefunctions now take astd::num::NonZeroUsizefor the capacity value.- As part of the glutin update,
OpenGL::new_from_glutin_contextwas renamed tonew_from_glutin_displayand takes a glutin display now. - Removed
glutinfrom the default features.
0.3.7 - 2022-10-24
Fixed
- Fix build with latest rustybuzz release after 0.5.2 breakage. 0.5.3 doesn't re-export the ttf_parser module anymore.
0.3.6 - 2022-10-23
Fixed
- Fix build with latest rustybuzz release.
0.3.5 - 2022-05-23
Changed
- Optimized the OpenGL renderer to perform better on older GPUs by splitting the large fragment shader into smaller programs.
0.3.4 - 2022-04-07
Added
- Added support for importing backend-specific textures into the rendering of a scene with
Canvas::create_image_from_native_texture. - Added functions to
TextContextto configure the text shaping caches:resize_shaping_run_cacheandresize_shaped_words_cache.
Changed
- Added optimized rendering code path for the common case of filling a rectangular path with an image and anti-aliasing on the paint disabled.
Fixed
- Fixed line breaking to permit a break in the middle of a word if it is the first word in the paragraph and it doesn't fit otherwise.
0.3.3 - 2022-02-21
Changed
- Bumped rustybuzz and ttf-parser dependencies.
0.3.2 - 2022-02-09
Fixed
- Correctly detect when WebGL is disabled in a web browser in the
renderer::OpenGL::new_from_html_canvasfunction.
0.3.1 - 2022-02-08
Fixed
- Don't require default features of glutin. We don't need any and this way other users of glutin have the ability to opt out.
0.3.0 - 2022-02-04
Changed
- Breaking: The dependency to the
imagecrate was bumped from0.23to0.24. Since the types of this crate are used in public femtovg API, users need to upgrade their dependency to theimagecrate as well. - Breaking: Removed deprecated
renderer::OpenGL::newfunction. Userenderer::OpenGl::new_from_functionorrenderer::OpenGl::new_from_glutin_context.
Added
- Use
Paint::image_tintto create an image paint that not only applies an alpha but an entire color (tint).
Fixed
- Improved performance of
fill_pathandstroke_path