Web font family fix.
@@ -294,7 +294,6 @@ impl RenderContext2D {
/// Specific the font family.
pub fn set_font_family(&mut self, family: impl Into<String>) {
- self.font_config.family = family.into().replace(" Regular", "");
self.canvas_render_context_2_d
.set_font(&self.font_config.to_string());
}
