From 1789a054114c46fcdcf01ac419462469bb4f4537 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 02:23:41 +0700 Subject: [PATCH] cargo fmt on the merged font-manager files --- crates/font-manager/src/panel/faces.rs | 2 +- crates/font-manager/src/picker/rows.rs | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/crates/font-manager/src/panel/faces.rs b/crates/font-manager/src/panel/faces.rs index dab5629a47..dd078c5152 100644 --- a/crates/font-manager/src/panel/faces.rs +++ b/crates/font-manager/src/panel/faces.rs @@ -2,9 +2,9 @@ //! them a few per pass, keeps the ones on screen and wakes the UI while one loads. use craft_i18n::{Direction, base_direction}; +use craft_theme::Srgba; use craft_ui::fonts::{FaceBytes, FontRef}; use craft_ui::primitives::{ContentPainterCx, DocRun, DocText, FacesCx}; -use craft_theme::Srgba; use craft_ui::style::DataColor; use egui::{Color32, Pos2, Rect}; diff --git a/crates/font-manager/src/picker/rows.rs b/crates/font-manager/src/picker/rows.rs index 8de72483ab..334a51544c 100644 --- a/crates/font-manager/src/picker/rows.rs +++ b/crates/font-manager/src/picker/rows.rs @@ -389,15 +389,7 @@ fn filter_chips( /// The sample of a family row: `text` in the regular face of `family` at `points`, named "{shown}: {text}" as the font /// manager names its samples, so the row keeps the family's name to itself; no face for a family the catalog /// lacks. `on_white` sets it in black on a white paper, in every theme. -fn sample<'a>( - catalog: &'a Catalog, - infos: &'a FamilyInfos, - family: &str, - shown: &str, - text: String, - points: f32, - on_white: bool, -) -> FontSample<'a> { +fn sample<'a>(catalog: &'a Catalog, infos: &'a FamilyInfos, family: &str, shown: &str, text: String, points: f32, on_white: bool) -> FontSample<'a> { let face = infos.families.get(family).map_or(SampleFace::Missing, |info| SampleFace::Face { catalog, owner: Owner::Installed, face: &info.regular }); FontSample::new(format!("{shown}: {text}"), text, face, points).on_white(on_white)