From ee1f3ced47852916cdaf58261ddbb53dde4947f1 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 1 Dec 2023 20:51:41 +0100 Subject: [PATCH] uwu --- kubi-ui/src/text.rs | 6 +++--- kubi-ui/src/text/{ftm.rs => texman.rs} | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) rename kubi-ui/src/text/{ftm.rs => texman.rs} (99%) diff --git a/kubi-ui/src/text.rs b/kubi-ui/src/text.rs index 04c94ce..f236664 100644 --- a/kubi-ui/src/text.rs +++ b/kubi-ui/src/text.rs @@ -1,12 +1,12 @@ use std::sync::Arc; mod font; -mod ftm; +mod texman; use font::FontManager; pub use font::FontHandle; -use ftm::FontTextureManager; -pub use ftm::{FontTextureInfo, GlyphCacheEntry}; +use texman::FontTextureManager; +pub use texman::{FontTextureInfo, GlyphCacheEntry}; pub struct TextRenderer { fm: FontManager, diff --git a/kubi-ui/src/text/ftm.rs b/kubi-ui/src/text/texman.rs similarity index 99% rename from kubi-ui/src/text/ftm.rs rename to kubi-ui/src/text/texman.rs index cb0b19d..6624970 100644 --- a/kubi-ui/src/text/ftm.rs +++ b/kubi-ui/src/text/texman.rs @@ -1,5 +1,5 @@ use std::sync::Arc; -use fontdue::{Font, Metrics}; +use fontdue::Metrics; use glam::{IVec2, UVec2, uvec2, ivec2}; use hashbrown::HashMap; use rect_packer::DensePacker; @@ -8,8 +8,6 @@ use crate::IfModified; use super::font::{FontHandle, FontManager}; - - #[derive(PartialEq, Eq, Hash)] struct GlyphCacheKey { font_index: usize,