Struct fontdue::FontSettings
source · [−]Expand description
Settings for controlling specific font and layout behavior.
Fields
collection_index: u32
The default is 0. The index of the font to use if parsing a font collection.
scale: f32
The default is 40. The scale in px the font geometry is optimized for. Fonts rendered at the scale defined here will be the most optimal in terms of looks and performance. Glyphs rendered smaller than this scale will look the same but perform slightly worse, while glyphs rendered larger than this will looks worse but perform slightly better. The units of the scale are pixels per Em unit.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FontSettings
impl Send for FontSettings
impl Sync for FontSettings
impl Unpin for FontSettings
impl UnwindSafe for FontSettings
Blanket Implementations
Mutably borrows from an owned value. Read more