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

Method define_font_data

canvas/src/context.rs:200–202  ·  view source on GitHub ↗

Loads font data into the canvas for a particular font ID

(&mut self, font_id: FontId, font_data: Arc<CanvasFontFace>)

Source from the content-addressed store, hash-verified

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

Callers 14

drawMethod · 0.80
mainFunction · 0.80
mainFunction · 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