Skip to main content

descent

Function descent 

Source
pub fn descent(font: Font, size: f32) -> f32
Expand description

Descender depth for font at size points, as a positive number (the AFM/TTF storage convention is negative; both backends normalise on the way out).

ยงExamples

use mos_fonts::{Base14Font, Font, descent};

assert!(descent(Font::Base14(Base14Font::Helvetica), 10.0) > 0.0);