Cap typography weight at semibold

- Render title and headline roles in semibold instead of bold.
This commit is contained in:
2026-11-16 18:55:34 +07:00
parent bf8de7f6c4
commit 03648469ec
+4 -4
View File
@@ -10,8 +10,8 @@ const LADDER: [Rung; 11] = [
(24.0, 32.0, FontWeight::SEMIBOLD),
(20.0, 28.0, FontWeight::SEMIBOLD),
(18.0, 24.0, FontWeight::SEMIBOLD),
(16.0, 24.0, FontWeight::BOLD),
(14.0, 20.0, FontWeight::BOLD),
(16.0, 24.0, FontWeight::SEMIBOLD),
(14.0, 20.0, FontWeight::SEMIBOLD),
(16.0, 24.0, FontWeight::NORMAL),
(14.0, 20.0, FontWeight::NORMAL),
(14.0, 20.0, FontWeight::NORMAL),
@@ -160,8 +160,8 @@ mod tests {
(TextRole::LargeTitle, 24.0, 32.0, FontWeight::SEMIBOLD),
(TextRole::Title, 20.0, 28.0, FontWeight::SEMIBOLD),
(TextRole::Title2, 18.0, 24.0, FontWeight::SEMIBOLD),
(TextRole::Title3, 16.0, 24.0, FontWeight::BOLD),
(TextRole::Headline, 14.0, 20.0, FontWeight::BOLD),
(TextRole::Title3, 16.0, 24.0, FontWeight::SEMIBOLD),
(TextRole::Headline, 14.0, 20.0, FontWeight::SEMIBOLD),
(TextRole::Body, 16.0, 24.0, FontWeight::NORMAL),
(TextRole::Callout, 14.0, 20.0, FontWeight::NORMAL),
(TextRole::Subheadline, 14.0, 20.0, FontWeight::NORMAL),