Use default font color and remove Color
This commit is contained in:
parent
7eb4d41c25
commit
4c1a83548e
3 changed files with 11 additions and 19 deletions
16
src/lib.rs
16
src/lib.rs
|
@ -12,20 +12,6 @@ pub use text_render::TextRenderer;
|
|||
|
||||
pub use cosmic_text;
|
||||
|
||||
/// The color to use when rendering text.
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub struct Color {
|
||||
/// The red component of the color.
|
||||
pub r: u8,
|
||||
/// The green component of the color.
|
||||
pub g: u8,
|
||||
/// The blue component of the color.
|
||||
pub b: u8,
|
||||
/// The alpha component of the color.
|
||||
pub a: u8,
|
||||
}
|
||||
|
||||
pub(crate) enum GpuCache {
|
||||
InAtlas { x: u16, y: u16 },
|
||||
SkipRasterization,
|
||||
|
@ -46,7 +32,7 @@ pub(crate) struct GlyphToRender {
|
|||
pos: [i32; 2],
|
||||
dim: [u16; 2],
|
||||
uv: [u16; 2],
|
||||
color: [u8; 4],
|
||||
color: u32,
|
||||
}
|
||||
|
||||
/// The screen resolution to use when rendering text.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue