Skip to content

Commit

Permalink
lib: Update RedHatMono weight properties
Browse files Browse the repository at this point in the history
This fixes a discussed issue[1] where Patternfly's default monospace
font gets incorrectly calculated as Red Hat Mono Light, which as 2
degrees thinner/lighter than medium.
Updating our overrides weight values to the ones used by Red Hat Mono[2]
pagckage should fix the issue,

[1] cockpit-project/cockpit-machines#1178 (comment)
[2] https://fontsource.org/fonts/red-hat-mono
  • Loading branch information
skobyda committed Oct 23, 2023
1 parent f23f7f6 commit 76d6937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/lib/patternfly/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@include printRedHatFont(400, "Regular");
@include printRedHatFont(700, "Bold", $familyName: "RedHatMono");
@include printRedHatFont(700, "BoldItalic", $style: "italic", $familyName: "RedHatMono");
@include printRedHatFont(300, "Italic", $style: "italic", $familyName: "RedHatMono");
@include printRedHatFont(400, "Medium", $familyName: "RedHatMono");
@include printRedHatFont(400, "MediumItalic", $style: "italic", $familyName: "RedHatMono");
@include printRedHatFont(300, "Regular", $familyName: "RedHatMono");
@include printRedHatFont(400, "Italic", $style: "italic", $familyName: "RedHatMono");
@include printRedHatFont(500, "Medium", $familyName: "RedHatMono");
@include printRedHatFont(500, "MediumItalic", $style: "italic", $familyName: "RedHatMono");
@include printRedHatFont(400, "Regular", $familyName: "RedHatMono");

0 comments on commit 76d6937

Please sign in to comment.