Change windows font metrics

This commit is contained in:
Jonathan Turner 2017-03-20 11:46:02 +13:00
parent bb54f0a429
commit cf911cef28

View file

@ -372,7 +372,7 @@ impl FontHandleMethods for FontHandle {
descent: au_from_du_s(dm.descent as i32), descent: au_from_du_s(dm.descent as i32),
max_advance: au_from_pt(0.0), // FIXME max_advance: au_from_pt(0.0), // FIXME
average_advance: au_from_pt(0.0), // FIXME average_advance: au_from_pt(0.0), // FIXME
line_gap: au_from_du(dm.lineGap as i32), line_gap: au_from_du((dm.ascent + dm.descent + dm.lineGap as u16) as i32),
}; };
debug!("Font metrics (@{} pt): {:?}", self.em_size * 12., metrics); debug!("Font metrics (@{} pt): {:?}", self.em_size * 12., metrics);
metrics metrics