Variable font support
Posted: Mon Nov 14, 2022 12:40 pm
Hello,
I'm currently trying and failing to use a variable font with Oxygen Chemistry. Is this feature supported?
Here's my code:
I tried to use in-between values, as well as "regular" values of Open Sans (400, 500...) but neither is working.
Previously, I referenced the individual .ttf file for Bold, but I wanted to have a font-weight between Bold and Semi-Bold (650). Is this possible?
Kind regards,
Dorian
I'm currently trying and failing to use a variable font with Oxygen Chemistry. Is this feature supported?
Here's my code:
Code: Select all
@font-face {
font-family: "OpenSans-Variable";
src: url('resources/fonts/OpenSans-VariableFont_wdth,wght.ttf') format("truetype");
}
*[class ~= "uicontrol"], *[class ~= "keyword"] {
font-family: "OpenSans-Variable" !important;
font-size: inherit;
white-space: nowrap;
font-weight: 650 !important;
}
Previously, I referenced the individual .ttf file for Bold, but I wanted to have a font-weight between Bold and Semi-Bold (650). Is this possible?
Kind regards,
Dorian