#[repr(C)]pub struct TextRenderingHints {
pub font_smoothing_enabled: bool,
pub subpixel_type: SubpixelType,
pub font_smoothing_gamma: u32,
pub increased_contrast: bool,
}Expand description
Text rendering configuration from the OS.
These hints allow the framework to match the host’s font smoothing settings for crisp, consistent text rendering.
Fields§
§font_smoothing_enabled: boolWhether font smoothing (anti-aliasing) is enabled.
subpixel_type: SubpixelTypeSubpixel rendering type.
font_smoothing_gamma: u32Font smoothing gamma (1000 = default, higher = more contrast).
increased_contrast: boolUser prefers increased text contrast.
Trait Implementations§
Source§impl Clone for TextRenderingHints
impl Clone for TextRenderingHints
Source§fn clone(&self) -> TextRenderingHints
fn clone(&self) -> TextRenderingHints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextRenderingHints
impl Debug for TextRenderingHints
Source§impl Default for TextRenderingHints
impl Default for TextRenderingHints
Source§impl PartialEq for TextRenderingHints
impl PartialEq for TextRenderingHints
impl Copy for TextRenderingHints
impl StructuralPartialEq for TextRenderingHints
Auto Trait Implementations§
impl Freeze for TextRenderingHints
impl RefUnwindSafe for TextRenderingHints
impl Send for TextRenderingHints
impl Sync for TextRenderingHints
impl Unpin for TextRenderingHints
impl UnsafeUnpin for TextRenderingHints
impl UnwindSafe for TextRenderingHints
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