use super::autonum::autonum; use super::run::{RunEffects, TextShadow}; use super::style::{Cell, Opts, ParaShaped, Style, face_chain, make_style}; use super::symbol::{covers_symbol, is_symbol_font, map_symbol_bullet, symbol_font_char, symbol_map_char}; use super::{ Arc, Bullet, Caps, Ctx, Fill, FontDb, FontFace, FontSlot, HashMap, ParaProps, RunKind, RunProps, ScriptTag, Shape, ShapeParams, TextBody, UnicodeSegmentation, bidi, resolve, script, }; #[allow(clippy::too_many_arguments)] pub(crate) fn shape_para( ctx: &Ctx, shape: &Shape, body: &TextBody, pi: usize, scale: f64, opts: &Opts, number: Option, vertical: Upright, ) -> ParaShaped { let db = FontDb::global(); let Some(para) = body.paragraphs.get(pi) else { let face = db.face("Inter", "Regular"); return ParaShaped { cells: vec![], styles: vec![], faces: vec![], props: ParaProps::default(), lead_size: 18.0, lead_face: face.clone(), end_size: 18.0, end_face: face, bullet: None, level: 0, rtl: false, }; }; let props = resolve::para(ctx, shape, para); let rtl = props.rtl.unwrap_or(false); let mut styles: Vec