Function allsorts_no_std::glyph_info::advance[][src]

pub fn advance(
    maxp: &MaxpTable,
    hhea: &HheaTable,
    hmtx_data: &[u8],
    glyph: u16
) -> Result<u16, ParseError>

Retrieve glyph advance.

Since the hhea and vhea tables share the same format this function will return horizontal or vertical advance depending on whether hhea or vhea is supplied to the hhea argument.