Use specific assertion for gfx platform freetype font

This commit is contained in:
CYBAI 2018-01-25 23:46:36 +08:00
parent befd7e4b44
commit 11cedc7b94

View file

@ -322,7 +322,7 @@ impl<'a> FontHandle {
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
assert!(metrics.x_ppem == metrics.y_ppem);
assert_eq!(metrics.x_ppem, metrics.y_ppem);
Au::from_f64_px(value * x_scale)
}