Loads font data into the canvas for a particular font ID
(&mut self, font_id: FontId, font_data: Arc<CanvasFontFace>)
| 198 | |
| 199 | /// Loads font data into the canvas for a particular font ID |
| 200 | fn define_font_data(&mut self, font_id: FontId, font_data: Arc<CanvasFontFace>) { |
| 201 | self.draw(Draw::Font(font_id, FontOp::UseFontDefinition(font_data))); |
| 202 | } |
| 203 | |
| 204 | /// Sets the size that text in the specified font will be rendered at |
| 205 | fn set_font_size(&mut self, font_id: FontId, size: f32) { |