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/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 784dbc2d..6c0ad649 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use same_file::is_same_file; use termcolor::{ColorChoice, StandardStream, WriteColor}; use typst::diag::{Error, StrResult}; -use typst::font::{FaceInfo, FontStore}; +use typst::font::{FontInfo, FontStore}; use typst::library::text::THEME; use typst::loading::FsLoader; use typst::parse::TokenMode; @@ -276,7 +276,7 @@ fn fonts(command: FontsCommand) -> StrResult<()> { for (name, infos) in fonts.families() { println!("{name}"); if command.variants { - for &FaceInfo { variant, .. } in infos { + for &FontInfo { variant, .. } in infos { println!( "- Style: {:?}, Weight: {:?}, Stretch: {:?}", variant.style, variant.weight, variant.stretch, -- cgit v1.2.3