Checkpoint

This commit is contained in:
Nathan Sobo 2023-10-17 08:26:12 +02:00
parent 2472142532
commit 695a24d8a7
9 changed files with 458 additions and 571 deletions

View file

@ -151,7 +151,7 @@ impl PlatformTextSystem for MacTextSystem {
fn layout_line(
&self,
text: &SharedString,
text: &str,
font_size: Pixels,
font_runs: &[(usize, FontId)],
) -> LineLayout {
@ -339,7 +339,7 @@ impl MacTextSystemState {
fn layout_line(
&mut self,
text: &SharedString,
text: &str,
font_size: Pixels,
font_runs: &[(usize, FontId)],
) -> LineLayout {
@ -416,7 +416,6 @@ impl MacTextSystemState {
let typographic_bounds = line.get_typographic_bounds();
LineLayout {
text: text.clone(),
width: typographic_bounds.width.into(),
ascent: typographic_bounds.ascent.into(),
descent: typographic_bounds.descent.into(),