diff --git a/adhocracy-plus/assets/scss/_fonts.scss b/adhocracy-plus/assets/scss/_fonts.scss index f97d1f9ff..a97af90da 100644 --- a/adhocracy-plus/assets/scss/_fonts.scss +++ b/adhocracy-plus/assets/scss/_fonts.scss @@ -2,28 +2,32 @@ font-family: "SourceSerifPro"; src: url("../fonts/SourceSerifPro-Regular.otf"); font-style: normal; - font-weight: normal; + font-weight: 400; + font-display: swap; } @font-face { font-family: "SourceSerifPro"; src: url("../fonts/SourceSerifPro-It.otf"); font-style: italic; - font-weight: normal; + font-weight: 400; + font-display: swap; } @font-face { font-family: "SourceSansPro"; src: url("../fonts/SourceSansPro-Regular.otf"); font-style: normal; - font-weight: normal; + font-weight: 400; + font-display: swap; } @font-face { font-family: "SourceSansPro"; src: url("../fonts/SourceSansPro-It.otf"); font-style: italic; - font-weight: normal; + font-weight: 400; + font-display: swap; } @font-face { @@ -31,11 +35,13 @@ src: url("../fonts/SourceSansPro-Semibold.otf"); font-style: normal; font-weight: 600; + font-display: swap; } @font-face { font-family: "SourceSansPro"; src: url("../fonts/SourceSansPro-Bold.otf"); - font-style: bold; + font-style: normal; font-weight: 900; + font-display: swap; } diff --git a/changelog/_9998.md b/changelog/_9998.md new file mode 100644 index 000000000..05ab72221 --- /dev/null +++ b/changelog/_9998.md @@ -0,0 +1,12 @@ +### Added + +- add font-display: swap to fonts + +### Fixed + +- fixed incorrect font-style: bold + + +### Changed + +- changed font-weight: normal to 400 to consistenly use numbers