mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Always include the last-resort font
This is used as a fallback for any characters that don't have glyphs in the specified font.
This commit is contained in:
parent
2d5dc8fa6d
commit
e588943b4f
258 changed files with 127 additions and 905 deletions
|
@ -1971,6 +1971,11 @@ impl Fragment {
|
|||
}
|
||||
}
|
||||
SpecificFragmentInfo::ScannedText(ref text_fragment) => {
|
||||
// Fragments with no glyphs don't contribute any inline metrics.
|
||||
// TODO: Filter out these fragments during flow construction?
|
||||
if text_fragment.content_size.inline == Au(0) {
|
||||
return InlineMetrics::new(Au(0), Au(0), Au(0));
|
||||
}
|
||||
// See CSS 2.1 § 10.8.1.
|
||||
let line_height = self.calculate_line_height(layout_context);
|
||||
let font_derived_metrics =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue