summaryrefslogtreecommitdiff
path: root/src/library/text/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 11:31:37 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 11:36:59 +0200
commit30be75c6687f1e03cf867d258b3ddba353cc7aa2 (patch)
tree51afd42ae8875811ae51974e66681a17990de7f2 /src/library/text/mod.rs
parent4ec3bcee487c1567bc6551f81d4f69eee4379076 (diff)
Renaming
`Face` -> `Font` `FaceId` -> `FontId` `SourceFile` -> `Source`
Diffstat (limited to 'src/library/text/mod.rs')
-rw-r--r--src/library/text/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/text/mod.rs b/src/library/text/mod.rs
index 91eab2fd..9c4f33f1 100644
--- a/src/library/text/mod.rs
+++ b/src/library/text/mod.rs
@@ -25,7 +25,7 @@ use std::borrow::Cow;
use ttf_parser::Tag;
use crate::font::{
- Face, FaceMetrics, FontStretch, FontStyle, FontWeight, VerticalFontMetric,
+ Font, FontMetrics, FontStretch, FontStyle, FontWeight, VerticalFontMetric,
};
use crate::library::prelude::*;
use crate::util::EcoString;
@@ -269,8 +269,8 @@ pub enum TextEdge {
}
impl TextEdge {
- /// Resolve the value of the text edge given a font face.
- pub fn resolve(self, styles: StyleChain, metrics: &FaceMetrics) -> Length {
+ /// Resolve the value of the text edge given a font's metrics.
+ pub fn resolve(self, styles: StyleChain, metrics: &FontMetrics) -> Length {
match self {
Self::Metric(metric) => metrics.vertical(metric).resolve(styles),
Self::Length(length) => length.resolve(styles),
@@ -333,7 +333,7 @@ impl Resolve for Smart<Hyphenate> {
}
}
-/// A stylistic set in a font face.
+/// A stylistic set in a font.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
pub struct StylisticSet(u8);
@@ -514,7 +514,7 @@ impl Show for StrongNode {
}
}
-/// Emphasized text, rendered with an italic face by default.
+/// Emphasized text, rendered with an italic font by default.
#[derive(Debug, Hash)]
pub struct EmphNode(pub Content);