Files
rust_browser/tests/goldens/expected/072-white-space-pre-line.dl.txt
Zachary D. Rowitsch e74b16790d Add real font support with bundled Noto Sans and font property pipeline
Integrate ab_glyph-based font rendering with bundled Noto Sans fonts
(Regular, Bold, Italic, BoldItalic, Mono) to replace the fixed-width
text measurer in golden tests. Thread font-weight, font-style, and
font-family through the entire rendering pipeline: CSS parsing → style
computation → layout → display list → rasterizer.

Key changes:
- fonts crate: font database, shaper, and rasterizer with bundled fonts
- CSS: parse font-family (comma-separated lists), font-weight, font-style
- shared: FontWeight and FontStyle types
- style: font property inheritance and computation
- layout: ProportionalTextMeasurer using real font metrics
- display_list: font properties on Text items (conditional dump output)
- render: font-aware text drawing
- Golden tests regenerated with proportional font measurements
- New golden tests (137-141) for font weight, style, family, and headings
- Golden test regeneration infrastructure (regen_goldens.rs)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 00:56:41 -05:00

12 lines
830 B
Plaintext

DisplayList items=10
Text rect=(8, 8, 22.449337, 16) text="This" color=#000000 font_size=16
Text rect=(33.50367, 8, 19.477238, 16) text="has" color=#000000 font_size=16
Text rect=(56.03524, 8, 45.427315, 16) text="multiple" color=#000000 font_size=16
Text rect=(104.516884, 8, 37.333336, 16) text="spaces" color=#000000 font_size=16
Text rect=(144.90456, 8, 18.725403, 16) text="but" color=#000000 font_size=16
Text rect=(166.6843, 8, 23.389135, 16) text="only" color=#000000 font_size=16
Text rect=(193.12776, 8, 48.693096, 16) text="newlines" color=#000000 font_size=16
Text rect=(244.8752, 8, 37.509544, 16) text="should" color=#000000 font_size=16
Text rect=(285.43906, 8, 13.85022, 16) text="be" color=#000000 font_size=16
Text rect=(302.3436, 8, 55.62408, 16) text="preserved" color=#000000 font_size=16