feat: add TextDecoration rendering

This commit is contained in:
Hojjat 2026-02-24 13:18:59 -07:00 committed by Jeremy Soller
parent 2edae7ef1d
commit 2758919c80
6 changed files with 136 additions and 10 deletions

View file

@ -2,7 +2,7 @@
use core::fmt::Display;
use crate::{math, CacheKey, CacheKeyFlags, Color};
use crate::{math, CacheKey, CacheKeyFlags, Color, TextDecoration};
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
@ -58,6 +58,8 @@ pub struct LayoutGlyph {
pub metadata: usize,
/// [`CacheKeyFlags`]
pub cache_key_flags: CacheKeyFlags,
/// Text decoration (underline, strikethough, overline)
pub text_decoration: TextDecoration,
}
#[derive(Clone, Debug)]