euv_core/font/glyph/
struct.rs1use super::*;
2
3#[derive(Clone, Copy, Debug, Default, Eq, Getter, Hash, New, Ord, PartialEq, PartialOrd)]
5pub struct GlyphKey {
6 #[get(type(copy))]
8 pub(crate) codepoint: char,
9 #[get(type(copy))]
11 pub(crate) size_tenths: u16,
12 #[get(type(copy))]
14 pub(crate) bold: bool,
15}
16
17#[derive(Clone, Debug, Default, Eq, Getter, New, PartialEq)]
19pub struct RasterizedGlyph {
20 #[get(type(copy))]
22 pub(crate) width: u32,
23 #[get(type(copy))]
25 pub(crate) height: u32,
26 #[get(type(copy))]
28 pub(crate) advance: u32,
29 pub(crate) coverage: Vec<u8>,
31}