summaryrefslogtreecommitdiff
path: root/src/frame.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/frame.rs
parent4ec3bcee487c1567bc6551f81d4f69eee4379076 (diff)
Renaming
`Face` -> `Font` `FaceId` -> `FontId` `SourceFile` -> `Source`
Diffstat (limited to 'src/frame.rs')
-rw-r--r--src/frame.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frame.rs b/src/frame.rs
index e2c820cc..8e0cb0dc 100644
--- a/src/frame.rs
+++ b/src/frame.rs
@@ -5,7 +5,7 @@ use std::num::NonZeroUsize;
use std::sync::Arc;
use crate::eval::{Dict, Value};
-use crate::font::FaceId;
+use crate::font::FontId;
use crate::geom::{
Align, Em, Length, Numeric, Paint, Point, Shape, Size, Spec, Transform,
};
@@ -356,8 +356,8 @@ impl Debug for Group {
/// A run of shaped text.
#[derive(Clone, Eq, PartialEq)]
pub struct Text {
- /// The font face the glyphs are contained in.
- pub face_id: FaceId,
+ /// The font the glyphs are contained in.
+ pub font_id: FontId,
/// The font size.
pub size: Length,
/// Glyph color.
@@ -391,7 +391,7 @@ impl Debug for Text {
/// A glyph in a run of shaped text.
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct Glyph {
- /// The glyph's index in the face.
+ /// The glyph's index in the font.
pub id: u16,
/// The advance width of the glyph.
pub x_advance: Em,