summaryrefslogtreecommitdiff
path: root/src/font/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-21 00:16:07 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-21 00:26:20 +0100
commitee732468c7487c81aa6470571077988b75d36ebb (patch)
treee0361bb75b8bbc3359b711f4009e165459d66248 /src/font/mod.rs
parent15cd273c82a96128a63781981a4405fcd2b1e846 (diff)
Document text category
Diffstat (limited to 'src/font/mod.rs')
-rw-r--r--src/font/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/font/mod.rs b/src/font/mod.rs
index 13189b6d..0422f3b9 100644
--- a/src/font/mod.rs
+++ b/src/font/mod.rs
@@ -254,7 +254,7 @@ pub struct LineMetrics {
/// Identifies a vertical metric of a font.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
pub enum VerticalFontMetric {
- /// The distance from the baseline to the typographic ascender.
+ /// The typographic ascender.
///
/// Corresponds to the typographic ascender from the `OS/2` table if present
/// and falls back to the ascender from the `hhea` table otherwise.
@@ -265,7 +265,7 @@ pub enum VerticalFontMetric {
XHeight,
/// The baseline on which the letters rest.
Baseline,
- /// The distance from the baseline to the typographic descender.
+ /// The typographic descender.
///
/// Corresponds to the typographic descender from the `OS/2` table if
/// present and falls back to the descender from the `hhea` table otherwise.