pub struct TextOptions {
pub max_texture_side: usize,
pub alpha_from_coverage: AlphaFromCoverage,
pub font_hinting: bool,
}Expand description
Controls how we render text
Fields§
§max_texture_side: usizeMaximum size of the font texture.
alpha_from_coverage: AlphaFromCoverageControls how to convert glyph coverage to alpha.
font_hinting: boolWhether to enable font hinting
(round some font coordinates to pixels for sharper text).
Default is true.
Trait Implementations§
Source§impl Clone for TextOptions
impl Clone for TextOptions
Source§fn clone(&self) -> TextOptions
fn clone(&self) -> TextOptions
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 TextOptions
impl Debug for TextOptions
Source§impl Default for TextOptions
impl Default for TextOptions
Source§impl PartialEq for TextOptions
impl PartialEq for TextOptions
impl Copy for TextOptions
impl StructuralPartialEq for TextOptions
Auto Trait Implementations§
impl Freeze for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnwindSafe for TextOptions
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