mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
scale line gap by em size
This commit is contained in:
parent
b0392dbf39
commit
ead828d992
1 changed files with 1 additions and 1 deletions
|
@ -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.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);
|
debug!("Font metrics (@{} pt): {:?}", self.em_size * 12., metrics);
|
||||||
metrics
|
metrics
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue