pub struct TextTiers {
pub sdf_min: f32,
pub path_min: f32,
}Expand description
TextTiers selects the text rendering method by device-space font size.
Valo uses bitmap masks below sdf_min, SDF below path_min, and vector
outlines at larger sizes. The defaults follow Skia’s static text thresholds;
zoom-heavy applications may lower sdf_min to reduce rerasterization.
Fields§
§sdf_min: f32sdf_min is the first device-pixel size rendered with SDF.
path_min: f32path_min is the first device-pixel size rendered as vector outlines.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextTiers
impl RefUnwindSafe for TextTiers
impl Send for TextTiers
impl Sync for TextTiers
impl Unpin for TextTiers
impl UnsafeUnpin for TextTiers
impl UnwindSafe for TextTiers
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more