Files
rust_browser/tests/goldens/expected/035-multiple-blocks-interrupting.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

91 lines
3.7 KiB
Plaintext

LayoutBox node=#1 tag=html box=block
content: (0, 0, 800, 112)
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, 96)
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, 784, 96)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#4 tag=(anonymous-block) box=block
content: (8, 8, 784, 19.2)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=50.713657
line[0]: rect=(8, 8, 50.713657, 19.2) fragments=2
frag[0]: rect=(8, 8, 23.612333, 16) text="Text" start=false end=false
frag[1]: rect=(34.666664, 8, 20.992659, 16) text="one" start=false end=false
LayoutBox node=#4 tag=anonymous box=anon
content: (0, 0, 53.767986, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " Text one "
LayoutBox node=#5 tag=div box=block
content: (8, 27.2, 784, 19.2)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=40.246696
line[0]: rect=(8, 27.2, 40.246696, 19.2) fragments=2
frag[0]: rect=(8, 27.2, 29.685757, 16) text="Block" start=false end=false
frag[1]: rect=(40.74009, 27.2, 7.506608, 16) text="A" start=false end=false
LayoutBox node=#6 tag=anonymous box=anon
content: (0, 0, 40.246696, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Block A"
LayoutBox node=#7 tag=(anonymous-block) box=block
content: (8, 46.4, 784, 19.200005)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 1 lines, height=19.200005, max_width=50.302494
line[0]: rect=(8, 46.4, 50.302494, 19.2) fragments=2
frag[0]: rect=(8, 46.4, 23.612333, 16) text="Text" start=false end=false
frag[1]: rect=(34.666664, 46.4, 20.581497, 16) text="two" start=false end=false
LayoutBox node=#7 tag=anonymous box=anon
content: (0, 0, 53.356827, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " Text two "
LayoutBox node=#8 tag=div box=block
content: (8, 65.600006, 784, 19.199997)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 1 lines, height=19.199997, max_width=40.37592
line[0]: rect=(8, 65.600006, 40.37592, 19.2) fragments=2
frag[0]: rect=(8, 65.600006, 29.685757, 16) text="Block" start=false end=false
frag[1]: rect=(40.74009, 65.600006, 7.6358294, 16) text="B" start=false end=false
LayoutBox node=#9 tag=anonymous box=anon
content: (0, 0, 40.37592, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Block B"
LayoutBox node=#10 tag=(anonymous-block) box=block
content: (8, 84.8, 784, 19.199997)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 1 lines, height=19.199997, max_width=59.324516
line[0]: rect=(8, 84.8, 59.324516, 19.2) fragments=2
frag[0]: rect=(8, 84.8, 23.612333, 16) text="Text" start=false end=false
frag[1]: rect=(34.666664, 84.8, 29.603525, 16) text="three" start=false end=false
LayoutBox node=#10 tag=anonymous box=anon
content: (0, 0, 62.37885, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " Text three "