PDA

View Full Version : Theme-Triton and Open Sans font



gianluca.dellapieta
26 Sep 2019, 11:36 PM
Hi,
with the new release 7.0 my web application is not showing the right font family as before (coming from 6.x versions). I'm currently using the triton-theme of 'classic' build.
Debbugging the web page I see the 'Open Sans' font is not downloaded anymore. Then I looked for some differences between 6.x and 7.x files and folders under the 'theme-triton' folder and this is what I found:

in the file 'Component.scss' (under folder 'ext\classic\theme-triton\sass\src\') the lines 'src: local(..)' and 'src: url(...)' are inverted, If I use the '6.x' file then the font is downloaded and it's working as before.

7.x version (not working for me):

@font-face {
font-family: 'Open Sans';
src: url('#{$triton-font-path}/OpenSans-Light.ttf');
src: local("OpenSans-Light");
font-weight: 300;
font-style: normal;
}

6.x version (working):

@font-face {
font-family: 'Open Sans';
src: local("OpenSans-Light");
src: url('#{$triton-font-path}/OpenSans-Light.ttf');
font-weight: 300;
font-style: normal;
}


Any suggestion?

Thanks