Skip to content

Commit

Permalink
Format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
StarArawn committed Dec 8, 2022
1 parent e87a016 commit 95a31d1
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions kayak_font/src/ttf/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,20 +303,16 @@ fn calculate_plane(
// t = geometry_scale as f64 * (-translation_y + (h as f64 - 0.5) * inv_box_scale);
// }

let left = loaded_file
.offset_x
.unwrap_or_default();
let top = loaded_file
.offset_y
.unwrap_or_default();
let left = loaded_file.offset_x.unwrap_or_default();
let top = loaded_file.offset_y.unwrap_or_default();

(
Vector2::new(translation_x, translation_y) * geometry_scale as f64,
Rect {
left: left * geometry_scale, // l as f32,
bottom: 0.0, // b as f32,
right: 0.0, // r as f32,
top: top * geometry_scale, //0.0, // t as f32,
left: left * geometry_scale, // l as f32,
bottom: 0.0, // b as f32,
right: 0.0, // r as f32,
top: top * geometry_scale, //0.0, // t as f32,
},
)
}

0 comments on commit 95a31d1

Please sign in to comment.