Sets the size that text in the specified font will be rendered at
(&mut self, font_id: FontId, size: f32)
| 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) { |
| 206 | self.draw(Draw::Font(font_id, FontOp::FontSize(size))); |
| 207 | } |
| 208 | |
| 209 | /// Draws a text string using a font |
| 210 | fn draw_text(&mut self, font_id: FontId, text: String, baseline_x: f32, baseline_y: f32) { |