Files
rust_browser/tests/goldens/expected/024-inline-border-wrap.layout.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

42 lines
1.9 KiB
Plaintext

LayoutBox node=#1 tag=html box=block
content: (0, 0, 800, 73.600006)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#2 tag=body box=block
content: (8, 8, 784, 57.600006)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#3 tag=div box=block
content: (8, 8, 80, 57.600006)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 3 lines, height=57.600006, max_width=67.51836
line[0]: rect=(8, 8, 67.51836, 19.2) fragments=4
frag[0]: rect=(20, 8, 28.417034, 16) text="word" start=true end=false
frag[1]: rect=(48.417034, 8, 3.0543318, 19.2) text=(none) start=false end=false
frag[2]: rect=(51.471367, 8, 20.992659, 16) text="one" start=false end=false
frag[3]: rect=(72.46403, 8, 3.0543318, 19.2) text=(none) start=false end=true
line[1]: rect=(8, 27.2, 57.107193, 19.2) fragments=4
frag[0]: rect=(10, 27.2, 28.417034, 16) text="word" start=true end=false
frag[1]: rect=(38.417034, 27.2, 3.0543318, 19.2) text=(none) start=false end=false
frag[2]: rect=(41.471367, 27.2, 20.581497, 16) text="two" start=false end=false
frag[3]: rect=(62.052864, 27.2, 3.0543318, 19.2) text=(none) start=false end=true
line[2]: rect=(8, 46.4, 65.07489, 19.2) fragments=3
frag[0]: rect=(10, 46.4, 28.417034, 16) text="word" start=true end=false
frag[1]: rect=(38.417034, 46.4, 3.0543318, 19.2) text=(none) start=false end=false
frag[2]: rect=(41.471367, 46.4, 29.603525, 16) text="three" start=false end=true
LayoutBox node=#4 tag=span box=inline
content: (0, 0, 0, 0)
padding: 0 0 0 0
border: 2 2 2 2
margin: 0 0 0 10
LayoutBox node=#5 tag=anonymous box=anon
content: (0, 0, 171.70045, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "word one word two wo..."