Files
rust_browser/tests/goldens/expected/055-absolute-in-relative.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

55 lines
2.2 KiB
Plaintext

LayoutBox node=#2 tag=html box=block
content: (0, 0, 800, 226)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#10 tag=body box=block
content: (8, 8, 784, 210)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#12 tag=div box=block
content: (28, 28, 400, 170)
padding: 20 20 20 20
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#14 tag=div box=block
content: (38, 38, 200, 150)
padding: 10 10 10 10
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#16 tag=div box=block
content: (38, 38, 80, 30)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=37.70925
line[0]: rect=(38, 38, 37.70925, 19.2) fragments=2
frag[0]: rect=(38, 38, 11.2422905, 16) text="In" start=false end=false
frag[1]: rect=(52.296623, 38, 23.412628, 16) text="flow" start=false end=false
LayoutBox node=#17 tag=anonymous box=anon
content: (0, 0, 37.70925, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "In flow"
LayoutBox node=#19 tag=div box=block
content: (178, 38, 61.944214, 40)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 3 lines, height=57.600006, max_width=61.944214
line[0]: rect=(178, 38, 51.67694, 19.2) fragments=1
frag[0]: rect=(178, 38, 48.62261, 16) text="Absolute" start=false end=false
line[1]: rect=(178, 57.2, 61.944214, 19.2) fragments=2
frag[0]: rect=(178, 57.2, 44.48752, 16) text="(relative" start=false end=false
frag[1]: rect=(225.54185, 57.2, 11.348018, 16) text="to" start=false end=false
line[2]: rect=(178, 76.4, 40.31717, 19.2) fragments=1
frag[0]: rect=(178, 76.4, 40.317177, 16) text="parent)" start=false end=false
LayoutBox node=#20 tag=anonymous box=anon
content: (0, 0, 153.93834, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Absolute (relative t..."