Struct kas_text::format::FontToken [−][src]
Expand description
Font formatting token
Fields
start: u32Index in text at which formatting becomes active
(Note that we use u32 not usize since it can be assumed text length
will never exeed u32::MAX.)
font_id: FontIdFont identifier
dpem: f32Font size, in dots-per-em (pixel width of an ‘M’)
This may be calculated from point size as pt_size * dpp, where dpp
is the number of pixels per point (see crate::fonts documentation).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FontTokenimpl UnwindSafe for FontTokenBlanket Implementations
Mutably borrows from an owned value. Read more
Cast to integer, truncating Read more
Cast to the nearest integer Read more
Cast the floor to an integer Read more
Try converting to integer with truncation Read more
Try converting to the nearest integer Read more
Try converting the floor to an integer Read more
Try convert the ceiling to an integer Read more