From 30be75c6687f1e03cf867d258b3ddba353cc7aa2 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 19 Sep 2022 11:31:37 +0200 Subject: Renaming `Face` -> `Font` `FaceId` -> `FontId` `SourceFile` -> `Source` --- src/loading/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/loading/mod.rs') diff --git a/src/loading/mod.rs b/src/loading/mod.rs index 4841e752..d37dd1fc 100644 --- a/src/loading/mod.rs +++ b/src/loading/mod.rs @@ -11,7 +11,7 @@ pub use mem::*; use std::io; use std::path::Path; -use crate::font::FaceInfo; +use crate::font::FontInfo; /// A hash that identifies a file. /// @@ -21,8 +21,8 @@ pub struct FileHash(pub u64); /// Loads resources from a local or remote source. pub trait Loader { - /// Descriptions of all font faces this loader serves. - fn faces(&self) -> &[FaceInfo]; + /// Descriptions of all fonts this loader serves. + fn fonts(&self) -> &[FontInfo]; /// Resolve a hash that is the same for this and all other paths pointing to /// the same file. @@ -36,7 +36,7 @@ pub trait Loader { pub struct BlankLoader; impl Loader for BlankLoader { - fn faces(&self) -> &[FaceInfo] { + fn fonts(&self) -> &[FontInfo] { &[] } -- cgit v1.2.3