I want to upload 2 variants of the same font (let's say Roboto with weight 300 and 500).
Then I want to configure the same font family for both of them.
This is currently not allowed (see attached screenshot).
I have to choose different names which results in an export like this:
@font-face {
font-family: Roboto300;
src: url('../fonts/roboto-v18-latin_latin-ext-300.woff') format('woff');
font-style: normal;
font-weight: 300;
font-display: auto;
}
@font-face {
font-family: Roboto500;
src: url('../fonts/roboto-v18-latin_latin-ext-500.woff') format('woff');
font-style: normal;
font-weight: 500;
font-display: auto;
}
But what I want to achieve is this:
@font-face {
font-family: Roboto;
src: url('../fonts/roboto-v18-latin_latin-ext-300.woff') format('woff');
font-style: normal;
font-weight: 300;
font-display: auto;
}
@font-face {
font-family: Roboto;
src: url('../fonts/roboto-v18-latin_latin-ext-500.woff') format('woff');
font-style: normal;
font-weight: 500;
font-display: auto;
}
My use case is that I want to set the font family only once and the just set different font-weight for individual components.
Also, we have migrated to Kendo / ThemeBuilder in our existing project which relies on fonts to be configured this way.