MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / set_font_size

Method set_font_size

canvas/src/context.rs:205–207  ·  view source on GitHub ↗

Sets the size that text in the specified font will be rendered at

(&mut self, font_id: FontId, size: f32)

Source from the content-addressed store, hash-verified

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) {

Callers 14

drawMethod · 0.80
show_titleFunction · 0.80
show_statsFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Implementers 3

font_line_layout.rscanvas/src/font_line_layout.rs
context.rscanvas/src/context.rs
canvas.rscanvas/src/canvas.rs

Calls 1

drawMethod · 0.45