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>
12 lines
703 B
Plaintext
12 lines
703 B
Plaintext
DisplayList items=10
|
|
SolidRect rect=(8, 8, 440, 210) color=#d3d3d3
|
|
SolidRect rect=(28, 28, 220, 170) color=#add8e6
|
|
SolidRect rect=(38, 38, 80, 30) color=#008000
|
|
Text rect=(38, 38, 11.2422905, 16) text="In" color=#000000 font_size=16
|
|
Text rect=(52.296623, 38, 23.412628, 16) text="flow" color=#000000 font_size=16
|
|
SolidRect rect=(178, 38, 61.944214, 40) color=#ff0000
|
|
Text rect=(178, 38, 48.62261, 16) text="Absolute" color=#000000 font_size=16
|
|
Text rect=(178, 57.2, 44.48752, 16) text="(relative" color=#000000 font_size=16
|
|
Text rect=(225.54185, 57.2, 11.348018, 16) text="to" color=#000000 font_size=16
|
|
Text rect=(178, 76.4, 40.317177, 16) text="parent)" color=#000000 font_size=16
|