aboutsummaryrefslogtreecommitdiff
path: root/font/src
diff options
context:
space:
mode:
Diffstat (limited to 'font/src')
-rw-r--r--font/src/ft/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs
index 07d5729b..dd15c4bb 100644
--- a/font/src/ft/mod.rs
+++ b/font/src/ft/mod.rs
@@ -86,7 +86,7 @@ pub struct FreeTypeRasterizer {
#[inline]
fn to_freetype_26_6(f: f32) -> isize {
- ((1i32 << 6) as f32 * f) as isize
+ ((1i32 << 6) as f32 * f).round() as isize
}
#[inline]