Checkpoint
This commit is contained in:
parent
2472142532
commit
695a24d8a7
9 changed files with 458 additions and 571 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue