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 #[new(skip)]
17 #[get(type(copy))]
18 pub(crate) monospace: bool,
19 #[new(skip)]
21 #[get(type(copy))]
22 pub(crate) italic: bool,
23}
24
25#[derive(Clone, Debug, Default, Eq, Getter, New, PartialEq)]
27pub struct RasterizedGlyph {
28 #[get(type(copy))]
30 pub(crate) width: u32,
31 #[get(type(copy))]
33 pub(crate) height: u32,
34 #[get(type(copy))]
36 pub(crate) advance: u32,
37 pub(crate) coverage: Vec<u8>,
39}