mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Implement per-glyph font fallback.
This improves numerous pages, for example Wikipedia and Ars Technica. Closes #177.
This commit is contained in:
parent
19b443ecc8
commit
fec43b49bb
9 changed files with 308 additions and 121 deletions
|
@ -427,8 +427,10 @@ fn render_text(layout_context: &LayoutContext,
|
|||
style,
|
||||
incremental::rebuild_and_reflow(),
|
||||
info));
|
||||
// FIXME(pcwalton): This should properly handle multiple marker fragments. This could happen
|
||||
// due to text run splitting.
|
||||
let fragments = TextRunScanner::new().scan_for_runs(layout_context.font_context(), fragments);
|
||||
debug_assert!(fragments.len() == 1);
|
||||
debug_assert!(fragments.len() >= 1);
|
||||
fragments.fragments.into_iter().next().unwrap().specific
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue