[−][src]Struct kas_text::format::FontToken
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
impl Clone for FontToken[src]
impl Debug for FontToken[src]
impl Default for FontToken[src]
impl PartialEq<FontToken> for FontToken[src]
impl StructuralPartialEq for FontToken[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,