pub struct TextRunContext {
pub font_id: FontId,
pub font_size: f32,
pub script: [u8; 4],
pub language: [u8; 4],
pub direction: Direction,
pub font_origin: FontOrigin,
}Expand description
Context identity for an owned text run.
Fields§
§font_id: FontIdFont identity.
font_size: f32Font point size in user/layout space.
script: [u8; 4]OpenType script tag (e.g. *b"latn").
language: [u8; 4]OpenType language tag (e.g. *b"dflt").
direction: DirectionText direction (LTR or RTL).
font_origin: FontOriginFont origin and capability tier.
Trait Implementations§
Source§impl Clone for TextRunContext
impl Clone for TextRunContext
Source§impl Debug for TextRunContext
impl Debug for TextRunContext
Source§impl PartialEq for TextRunContext
impl PartialEq for TextRunContext
impl StructuralPartialEq for TextRunContext
Auto Trait Implementations§
impl Freeze for TextRunContext
impl RefUnwindSafe for TextRunContext
impl Send for TextRunContext
impl Sync for TextRunContext
impl Unpin for TextRunContext
impl UnsafeUnpin for TextRunContext
impl UnwindSafe for TextRunContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more