Files
rust_browser/tests/goldens/expected/019-text-wrapping.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

18 lines
1.3 KiB
Plaintext

DisplayList items=16
Text rect=(8, 8, 22.449337, 16) text="This" color=#000000 font_size=16
Text rect=(33.50367, 8, 8.657856, 16) text="is" color=#000000 font_size=16
Text rect=(45.21586, 8, 6.590308, 16) text="a" color=#000000 font_size=16
Text rect=(54.8605, 8, 24.622616, 16) text="long" color=#000000 font_size=16
Text rect=(8, 27.2, 49.903084, 16) text="sentence" color=#000000 font_size=16
Text rect=(60.957417, 27.2, 22.331863, 16) text="that" color=#000000 font_size=16
Text rect=(8, 46.4, 37.509544, 16) text="should" color=#000000 font_size=16
Text rect=(48.563877, 46.4, 27.900146, 16) text="wrap" color=#000000 font_size=16
Text rect=(79.51835, 46.4, 11.348018, 16) text="to" color=#000000 font_size=16
Text rect=(8, 65.600006, 45.427315, 16) text="multiple" color=#000000 font_size=16
Text rect=(56.481647, 65.600006, 25.574158, 16) text="lines" color=#000000 font_size=16
Text rect=(8, 84.8, 45.591774, 16) text="because" color=#000000 font_size=16
Text rect=(56.646107, 84.8, 18.126286, 16) text="the" color=#000000 font_size=16
Text rect=(8, 104, 52.604992, 16) text="container" color=#000000 font_size=16
Text rect=(63.659325, 104, 8.657856, 16) text="is" color=#000000 font_size=16
Text rect=(8, 123.2, 43.042583, 16) text="narrow." color=#000000 font_size=16