This commit is contained in:
griffi-gh 2023-12-01 20:51:41 +01:00
parent 64e4dcfe01
commit 175ca1a877
2 changed files with 4 additions and 6 deletions

View file

@ -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,

View file

@ -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,