Skip to main content

text_block

Function text_block 

Source
fn text_block<'a>(
    svg: &mut String,
    style: &Style,
    lines: &[String],
    x: f32,
    top: f32,
    color: impl Fn(usize) -> &'a str,
) -> Result<f32, OgError>
Expand description

自 top 起逐行写出文字,返回最后一行行框的底边。