@@ -174,7 +174,7 @@ impl PaintScene for WebGlScenePainter<'_> {
174174 font_size : f32 ,
175175 hint : bool ,
176176 normalized_coords : & ' a [ NormalizedCoord ] ,
177- _embolden : kurbo:: Vec2 ,
177+ embolden : kurbo:: Vec2 ,
178178 style : impl Into < StyleRef < ' a > > ,
179179 paint : impl Into < PaintRef < ' a > > ,
180180 _brush_alpha : f32 ,
@@ -186,13 +186,7 @@ impl PaintScene for WebGlScenePainter<'_> {
186186 self . scene . set_paint ( paint) ;
187187 self . scene . set_transform ( transform) ;
188188
189- fn into_vello_glyph ( g : Glyph ) -> glifo:: Glyph {
190- glifo:: Glyph {
191- id : g. id ,
192- x : g. x ,
193- y : g. y ,
194- }
195- }
189+ fn into_vello_glyph ( g : Glyph ) -> glifo:: Glyph { }
196190
197191 let style: StyleRef < ' a > = style. into ( ) ;
198192 match style {
@@ -205,7 +199,11 @@ impl PaintScene for WebGlScenePainter<'_> {
205199 . normalized_coords ( normalized_coords)
206200 . font_embolden ( FontEmbolden :: new ( Diagonal2 :: new ( embolden. x , embolden. y ) ) )
207201 . glyph_transform ( glyph_transform. unwrap_or_default ( ) )
208- . fill_glyphs ( glyphs. map ( into_vello_glyph) ) ;
202+ . fill_glyphs ( glyphs. map ( |g| glifo:: Glyph {
203+ id : g. id ,
204+ x : g. x ,
205+ y : g. y - embolden. y as f32 ,
206+ } ) ) ;
209207 }
210208 StyleRef :: Stroke ( stroke) => {
211209 self . scene . set_stroke ( stroke. clone ( ) ) ;
@@ -215,7 +213,11 @@ impl PaintScene for WebGlScenePainter<'_> {
215213 . hint ( hint)
216214 . normalized_coords ( normalized_coords)
217215 . glyph_transform ( glyph_transform. unwrap_or_default ( ) )
218- . stroke_glyphs ( glyphs. map ( into_vello_glyph) ) ;
216+ . stroke_glyphs ( glyphs. map ( |g| glifo:: Glyph {
217+ id : g. id ,
218+ x : g. x ,
219+ y : g. y ,
220+ } ) ) ;
219221 }
220222 }
221223 }
0 commit comments