pub struct FootnoteStyle {
pub font_size: f32,
pub line_height: f32,
pub entry_space_after: f32,
pub gap_above: f32,
pub gap_below_rule: f32,
pub rule_width_frac: f32,
pub rule_thickness: f32,
pub rule_color: ColorRgb,
pub text_color: ColorRgb,
pub font_families: Vec<String>,
}Expand description
Per-page footnote pool styling.
Fields§
§font_size: f32Body font size for footnote entries (typically smaller than body text — e.g. 9pt against an 11pt body).
line_height: f32Line height (em multiplier) for footnote entries.
entry_space_after: f32Vertical gap between consecutive footnote entries on the page.
gap_above: f32Vertical gap between body content and the separator rule.
gap_below_rule: f32Vertical gap between the separator rule and the first entry.
rule_width_frac: f32Width of the separator rule, expressed as a fraction of the printable column width (0.0–1.0). Use 1.0 for a full-width rule, 0.3 for a short academic-style separator.
rule_thickness: f32Stroke thickness for the separator rule.
rule_color: ColorRgb§text_color: ColorRgb§font_families: Vec<String>Font families for this element, in fallback order. Empty means
“inherit the document body families” (body_font_families, or
the bundled Noto defaults when that is also empty). Names must
be families the font collection knows — either system-installed
or exposed by a file listed in font_paths.
Note this REPLACES the body list rather than extending it, so a Latin-only face here will lose the multi-script fallbacks. List the scripts you need explicitly if the document is not Latin-only.
Trait Implementations§
Source§impl Clone for FootnoteStyle
impl Clone for FootnoteStyle
Source§impl Debug for FootnoteStyle
impl Debug for FootnoteStyle
Source§impl Default for FootnoteStyle
impl Default for FootnoteStyle
Source§impl<'de> Deserialize<'de> for FootnoteStylewhere
FootnoteStyle: Default,
impl<'de> Deserialize<'de> for FootnoteStylewhere
FootnoteStyle: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Forget for FootnoteStyle
impl Freeze for FootnoteStyle
impl Move for FootnoteStyle
impl RefUnwindSafe for FootnoteStyle
impl Send for FootnoteStyle
impl Sync for FootnoteStyle
impl Unpin for FootnoteStyle
impl UnsafeUnpin for FootnoteStyle
impl UnwindSafe for FootnoteStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.