|
@ -38,14 +38,14 @@ pub struct GlyphMetadata { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
pub struct FontAtlas {
|
|
|
pub struct FontAtlas {
|
|
|
glyph_data: HashMap<char, GlyphMetadata>
|
|
|
|
|
|
|
|
|
pub glyph_data: HashMap<char, GlyphMetadata>
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
pub struct FontTexture {
|
|
|
pub struct FontTexture {
|
|
|
/// The GPU texture of packed glyphs.
|
|
|
/// The GPU texture of packed glyphs.
|
|
|
texture: Texture2d,
|
|
|
|
|
|
|
|
|
pub texture: Texture2d,
|
|
|
|
|
|
|
|
|
/// Atlas describing where glyphs are.
|
|
|
/// Atlas describing where glyphs are.
|
|
|
atlas: FontAtlas,
|
|
|
|
|
|
|
|
|
pub atlas: FontAtlas,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|