Add initial rich text example

This commit is contained in:
Jeremy Soller 2022-10-26 14:16:48 -06:00
parent 119a570ee9
commit 4798c7ee1a
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
11 changed files with 854 additions and 595 deletions

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
use super::CacheKey;
use crate::{CacheKey, Color};
/// A laid out glyph
pub struct LayoutGlyph {
@ -20,6 +20,8 @@ pub struct LayoutGlyph {
pub x_int: i32,
/// Integer component of Y offset in line
pub y_int: i32,
/// Optional color override
pub color_opt: Option<Color>,
}
/// A line of laid out glyphs