Skip to content

Commit a645853

Browse files
committed
add embolden to draw glyphs
1 parent cd3f5df commit a645853

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

crates/anyrender/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ pub trait PaintScene {
126126
font_size: f32,
127127
hint: bool,
128128
normalized_coords: &'a [NormalizedCoord],
129+
embolden: kurbo::Vec2,
129130
style: impl Into<StyleRef<'a>>,
130131
brush: impl Into<PaintRef<'a>>,
131132
brush_alpha: f32,

crates/anyrender/src/null_backend.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ impl PaintScene for NullScenePainter {
119119
_font_size: f32,
120120
_hint: bool,
121121
_normalized_coords: &'a [crate::NormalizedCoord],
122+
_embolden: kurbo::Vec2,
122123
_style: impl Into<peniko::StyleRef<'a>>,
123124
_brush: impl Into<crate::PaintRef<'a>>,
124125
_brush_alpha: f32,

crates/anyrender_skia/src/scene.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ impl PaintScene for SkiaScenePainter<'_> {
437437
font_size: f32,
438438
hint: bool,
439439
normalized_coords: &'a [anyrender::NormalizedCoord],
440+
_embolden: kurbo::Vec2,
440441
style: impl Into<peniko::StyleRef<'a>>,
441442
brush: impl Into<anyrender::PaintRef<'a>>,
442443
brush_alpha: f32,

crates/anyrender_vello/src/scene.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ impl PaintScene for VelloScenePainter<'_, '_> {
115115
font_size: f32,
116116
hint: bool,
117117
normalized_coords: &'a [NormalizedCoord],
118+
_embolden: kurbo::Vec2,
118119
style: impl Into<StyleRef<'a>>,
119120
paint: impl Into<PaintRef<'a>>,
120121
brush_alpha: f32,

crates/anyrender_vello_cpu/src/scene.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ impl PaintScene for VelloCpuScenePainter {
107107
font_size: f32,
108108
hint: bool,
109109
normalized_coords: &'a [NormalizedCoord],
110+
_embolden: kurbo::Vec2,
110111
style: impl Into<StyleRef<'a>>,
111112
paint: impl Into<PaintRef<'a>>,
112113
_brush_alpha: f32,

crates/anyrender_vello_hybrid/src/scene.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ impl PaintScene for VelloHybridScenePainter<'_> {
149149
font_size: f32,
150150
hint: bool,
151151
normalized_coords: &'a [NormalizedCoord],
152+
_embolden: kurbo::Vec2,
152153
style: impl Into<StyleRef<'a>>,
153154
paint: impl Into<PaintRef<'a>>,
154155
_brush_alpha: f32,

0 commit comments

Comments
 (0)