From a6458537f9bcffdbb70c7d31780a2cfcfff551bd Mon Sep 17 00:00:00 2001 From: jrmoulton Date: Wed, 29 Oct 2025 01:49:02 -0600 Subject: [PATCH] add embolden to draw glyphs --- crates/anyrender/src/lib.rs | 1 + crates/anyrender/src/null_backend.rs | 1 + crates/anyrender_skia/src/scene.rs | 1 + crates/anyrender_vello/src/scene.rs | 1 + crates/anyrender_vello_cpu/src/scene.rs | 1 + crates/anyrender_vello_hybrid/src/scene.rs | 1 + 6 files changed, 6 insertions(+) diff --git a/crates/anyrender/src/lib.rs b/crates/anyrender/src/lib.rs index 86bdb0d..c63c969 100644 --- a/crates/anyrender/src/lib.rs +++ b/crates/anyrender/src/lib.rs @@ -126,6 +126,7 @@ pub trait PaintScene { font_size: f32, hint: bool, normalized_coords: &'a [NormalizedCoord], + embolden: kurbo::Vec2, style: impl Into>, brush: impl Into>, brush_alpha: f32, diff --git a/crates/anyrender/src/null_backend.rs b/crates/anyrender/src/null_backend.rs index a672a57..76372ad 100644 --- a/crates/anyrender/src/null_backend.rs +++ b/crates/anyrender/src/null_backend.rs @@ -119,6 +119,7 @@ impl PaintScene for NullScenePainter { _font_size: f32, _hint: bool, _normalized_coords: &'a [crate::NormalizedCoord], + _embolden: kurbo::Vec2, _style: impl Into>, _brush: impl Into>, _brush_alpha: f32, diff --git a/crates/anyrender_skia/src/scene.rs b/crates/anyrender_skia/src/scene.rs index be3b9d1..0a991f8 100644 --- a/crates/anyrender_skia/src/scene.rs +++ b/crates/anyrender_skia/src/scene.rs @@ -437,6 +437,7 @@ impl PaintScene for SkiaScenePainter<'_> { font_size: f32, hint: bool, normalized_coords: &'a [anyrender::NormalizedCoord], + _embolden: kurbo::Vec2, style: impl Into>, brush: impl Into>, brush_alpha: f32, diff --git a/crates/anyrender_vello/src/scene.rs b/crates/anyrender_vello/src/scene.rs index 2c7dac2..d7a63b0 100644 --- a/crates/anyrender_vello/src/scene.rs +++ b/crates/anyrender_vello/src/scene.rs @@ -115,6 +115,7 @@ impl PaintScene for VelloScenePainter<'_, '_> { font_size: f32, hint: bool, normalized_coords: &'a [NormalizedCoord], + _embolden: kurbo::Vec2, style: impl Into>, paint: impl Into>, brush_alpha: f32, diff --git a/crates/anyrender_vello_cpu/src/scene.rs b/crates/anyrender_vello_cpu/src/scene.rs index 20acb94..ffb1327 100644 --- a/crates/anyrender_vello_cpu/src/scene.rs +++ b/crates/anyrender_vello_cpu/src/scene.rs @@ -107,6 +107,7 @@ impl PaintScene for VelloCpuScenePainter { font_size: f32, hint: bool, normalized_coords: &'a [NormalizedCoord], + _embolden: kurbo::Vec2, style: impl Into>, paint: impl Into>, _brush_alpha: f32, diff --git a/crates/anyrender_vello_hybrid/src/scene.rs b/crates/anyrender_vello_hybrid/src/scene.rs index 8d1b387..d51aa60 100644 --- a/crates/anyrender_vello_hybrid/src/scene.rs +++ b/crates/anyrender_vello_hybrid/src/scene.rs @@ -149,6 +149,7 @@ impl PaintScene for VelloHybridScenePainter<'_> { font_size: f32, hint: bool, normalized_coords: &'a [NormalizedCoord], + _embolden: kurbo::Vec2, style: impl Into>, paint: impl Into>, _brush_alpha: f32,