mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Use specific assertion for gfx platform freetype font
This commit is contained in:
parent
befd7e4b44
commit
11cedc7b94
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ impl<'a> FontHandle {
|
||||||
let x_scale = (metrics.x_ppem as f64) / em_size as f64;
|
let x_scale = (metrics.x_ppem as f64) / em_size as f64;
|
||||||
|
|
||||||
// If this isn't true then we're scaling one of the axes wrong
|
// If this isn't true then we're scaling one of the axes wrong
|
||||||
assert!(metrics.x_ppem == metrics.y_ppem);
|
assert_eq!(metrics.x_ppem, metrics.y_ppem);
|
||||||
|
|
||||||
Au::from_f64_px(value * x_scale)
|
Au::from_f64_px(value * x_scale)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue