mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-28 20:26:57 -06:00
Integration: rustfmt the composite note label call in shape_para
The #126 merge resolution moved #126's composite-font note label shaping into #81's piece pass and passed #81's StyleRuns; the resulting call is longer than one line.
This commit is contained in:
@@ -417,7 +417,18 @@ pub(crate) fn shape_para(
|
||||
let style = table.intern(db, &props);
|
||||
let env = table.env_for(first.env, style);
|
||||
let face = db.face(&props.font_family, &props.font_style);
|
||||
shape_segment(db, &story.text, first.range.clone(), label.get(a..b), &props, &face, env, &StyleRuns(&[(at, style)]), &mut glyphs, sub.vertical);
|
||||
shape_segment(
|
||||
db,
|
||||
&story.text,
|
||||
first.range.clone(),
|
||||
label.get(a..b),
|
||||
&props,
|
||||
&face,
|
||||
env,
|
||||
&StyleRuns(&[(at, style)]),
|
||||
&mut glyphs,
|
||||
sub.vertical,
|
||||
);
|
||||
}
|
||||
for (index, glyph) in glyphs[begin..].iter_mut().enumerate() {
|
||||
glyph.len = if index == 0 { first.range.len() } else { 0 };
|
||||
|
||||
Reference in New Issue
Block a user