File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ impl CosmicTextContext {
1717 let mut buffer = Buffer :: new_empty ( metrics) ;
1818 buffer. set_size ( font_system, None , None ) ;
1919 buffer. set_text ( font_system, text, attrs, Shaping :: Advanced ) ;
20+ buffer. shape_until_scroll ( font_system, false ) ;
2021 Self { buffer }
2122 }
2223
@@ -33,8 +34,6 @@ impl CosmicTextContext {
3334 } ) ;
3435 self . buffer . set_size ( font_system, width_constraint, None ) ;
3536
36- self . buffer . shape_until_scroll ( font_system, false ) ;
37-
3837 let ( width, total_lines) = self
3938 . buffer
4039 . layout_runs ( )
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ import-yoga-tests:
77format-fixtures :
88 cargo run --package format-fixtures --
99
10+ [working-directory : ' benches' ]
1011bench * ARGS :
11- cargo bench --package taffy_benchmarks {{ ARGS}}
12+ cargo bench {{ ARGS}}
1213
1314clippy :
1415 cargo + nightly clippy --workspace
You can’t perform that action at this time.
0 commit comments