pub struct TextStyle {
pub size_pt: f32,
pub leading: f32,
pub family: FontFamily,
}Expand description
Body text style resolved from #set text(...). leading applies
to body paragraphs only; headings keep their own multiplier so a
#set text(leading: 2.0) doesn’t balloon section titles.
family is the resolved FontFamily from #set text(font: ...).
Headings use the family’s bold cut; *emphasis* uses italic;
`raw` uses monospace; everything else is family.regular.
Fields§
§size_pt: f32§leading: f32§family: FontFamilyTrait Implementations§
impl Copy for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.