Skip to main content

make_simple_label

Function make_simple_label 

Source
pub fn make_simple_label(
    text: &str,
    font_name: &str,
    font_size: f64,
) -> TextLabelLayout
Expand description

make_simple_label from lib/common/labels.c: splits text (already object- and entity-substituted) into lines on \n, \l, \r and literal newlines, reducing every other \c to c. width/height are C’s lp->dimen.