scale line gap by em size

This commit is contained in:
hinaria 2017-06-15 23:46:17 +10:00
parent b0392dbf39
commit ead828d992

View file

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