Struct kas_text::format::FontToken [−][src]
Expand description
Font formatting token
Fields
start: u32
Index 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: FontId
Font identifier
dpem: f32
Font 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 FontToken
impl UnwindSafe for FontToken
Blanket 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