pub struct FirstLine {
pub face: Option<Face>,
pub size: Option<f32>,
pub letter_spacing: Option<f32>,
pub caps: Option<FontVariantCaps>,
pub transform: Option<TextTransform>,
pub color: Option<Color>,
pub decoration: Option<TextDecoration>,
}Expand description
What ::first-line changes about the paragraph it opens.
A field is set where the pseudo-element’s style differs from the element’s own, so what it changes reaches an emphasis or a link on the opening line without replacing the rest of their style.
Fields§
§face: Option<Face>The cut the opening line is set in, where the rule asked for another one.
size: Option<f32>font-size, in points.
letter_spacing: Option<f32>letter-spacing, in points.
caps: Option<FontVariantCaps>font-variant-caps.
transform: Option<TextTransform>text-transform.
color: Option<Color>color.
decoration: Option<TextDecoration>What text-decoration draws across the line.
Implementations§
Source§impl FirstLine
impl FirstLine
Sourcepub fn over(
&self,
style: &ParagraphStyle,
registry: &FontRegistry,
) -> ParagraphStyle
pub fn over( &self, style: &ParagraphStyle, registry: &FontRegistry, ) -> ParagraphStyle
The style one run of the opening line is set in, with face
matched against registry.
Trait Implementations§
impl Copy for FirstLine
impl StructuralPartialEq for FirstLine
Auto Trait Implementations§
impl Freeze for FirstLine
impl RefUnwindSafe for FirstLine
impl Send for FirstLine
impl Sync for FirstLine
impl Unpin for FirstLine
impl UnsafeUnpin for FirstLine
impl UnwindSafe for FirstLine
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<T> ErasedDestructor for Twhere
T: 'static,
§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.