mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix linux build error.
This commit is contained in:
parent
7401cd0aeb
commit
be41c203ac
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ impl FontHandleMethods for FontHandle {
|
||||||
let average_advance = self.glyph_index('0')
|
let average_advance = self.glyph_index('0')
|
||||||
.and_then(|idx| self.glyph_h_advance(idx))
|
.and_then(|idx| self.glyph_h_advance(idx))
|
||||||
.map(|advance| self.font_units_to_au(advance))
|
.map(|advance| self.font_units_to_au(advance))
|
||||||
.unwrap_or(max_advance_width);
|
.unwrap_or(max_advance);
|
||||||
|
|
||||||
let metrics = FontMetrics {
|
let metrics = FontMetrics {
|
||||||
underline_size: underline_size,
|
underline_size: underline_size,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue