font/metrics.rs
1use crate::Number;
2
3/// Metrics.
4#[derive(Clone, Copy, Debug, Default, PartialEq)]
5pub struct Metrics {
6 /// The granularity of the coordinate grid.
7 pub granularity: Number,
8 /// The point above which clipping can safely occur.
9 pub clipping_ascender: Number,
10 /// The typographical ascender relative to the baseline.
11 pub ascender: Number,
12 /// The cap height relative to the baseline.
13 pub cap_height: Number,
14 /// The x-height relative to the baseline.
15 pub x_height: Number,
16 /// The baseline.
17 pub baseline: Number,
18 /// The typographical descender relative to the baseline.
19 pub descender: Number,
20 /// The point below which clipping can safely occur.
21 pub clipping_descender: Number,
22 /// The typographical line gap.
23 pub line_gap: Number,
24}