Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

windows_cell_em

Function windows_cell_em 

Source
pub fn windows_cell_em(
    font_bytes: &[u8],
    face_index: u32,
    cell: f64,
) -> Option<f64>
Expand description

The em of a text whose Windows font cell is cell tall, in the cell’s units. The cell is the face’s OS/2 usWinAscent + usWinDescent, with no hhea or typographic fallback (GFX windows_cell_height). None for bytes that are not a face, or a face without an OS/2 cell.