Hello, I've just noticed that in the skinEditor, using Shiva as base, if I change some fonts to RobotoLight, then in the exported skin, the skin_styles.css file there will be only the the @font-face declaration for RobotoLight - not for Roboto-Light-Vivid - even if in the css both are used.
Also note that not everything inherits from the primary font.
Then, If I've changed everything to RobotoLight, and in the exported css there's its @font-face declaration and it's the only font used in the css, so it's fine.
Then I've changed some fonts to Roboto-Regular: this time in the exported css I see both @font-face declaration, so it's fine, and better then in the first case.
Actually I've got a skin where the @font-face declaration is completely missing, but I can't say how I got there.
Also, I want to ask if it could be possible to use, for instance, fonts loaded from an external source, say:
by adding them in the registeredFonts.json file ?
In this way the @font-face would not only be unnecessary, but must I remove it from the skin_styles.css file?
Also note that not everything inherits from the primary font.
Then, If I've changed everything to RobotoLight, and in the exported css there's its @font-face declaration and it's the only font used in the css, so it's fine.
Then I've changed some fonts to Roboto-Regular: this time in the exported css I see both @font-face declaration, so it's fine, and better then in the first case.
Actually I've got a skin where the @font-face declaration is completely missing, but I can't say how I got there.
Also, I want to ask if it could be possible to use, for instance, fonts loaded from an external source, say:
Code:
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i&display=swap" rel="stylesheet">
In this way the @font-face would not only be unnecessary, but must I remove it from the skin_styles.css file?
Comment