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 exceed 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§
impl StructuralPartialEq for FontToken
Auto Trait Implementations§
impl RefUnwindSafe for FontToken
impl Send for FontToken
impl Sync for FontToken
impl Unpin for FontToken
impl UnwindSafe for FontToken
Blanket Implementations§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more