render: preserve numeric font weights

This commit is contained in:
SGavrl committed 2026-07-26 20:48:24 +00:00
1 parent d6be828d17
commit 20be62bca9
6 files changed
+266 -47

No files matched your search

+3
View File
@@ -312,6 +312,9 @@ pub struct LayoutStyle {
/// eagerly treating `9vw` as the number 9 made responsive headings pin to
/// the minimum arm of their clamp.
pub font_size_expression: Option<String>,
/// Specified CSS font weight during cascade (`1..1000`, `bolder`, or
/// `lighter`), normalized to its numeric computed value by the inheritance
/// pass before layout and shaping.
pub font_weight: Option<String>,
/// The computed `font-family` list, lowercased. Inherited. The text engine
/// resolves it to a bundled face (Liberation Sans/Serif/Mono) the way