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

Method layout_text

canvas/src/context.rs:225–227  ·  view source on GitHub ↗

Adds text to the current line layout

(&mut self, font_id: FontId, text: String)

Source from the content-addressed store, hash-verified

223
224 /// Adds text to the current line layout
225 fn layout_text(&mut self, font_id: FontId, text: String) {
226 self.draw(Draw::Font(font_id, FontOp::LayoutText(text)));
227 }
228
229 /// Finishes laying out text and renders the result
230 fn draw_text_layout(&mut self) {

Callers 5

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

Tested by

no test coverage detected