Skip to main content

make_text

Function make_text 

Source
pub fn make_text(
    model: &mut Model,
    text: &str,
    frame: &Frame,
    height: f64,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Build text as engraved wires in the xy plane of frame, height tall at the capitals, reading along x.

The result is a compound of open wires, one per stroke, with history generating each from nothing. A space advances; any other character the font does not carry refuses by name.

ยงErrors

OgeomError::Construction if the height is not finite and positive, or a character is not in the font.