Hi,
Because of GDPR i disabled all google fonts and hosted locally.
I tried with SP font book but experienced difficulties with Italic text parts.
So i added with CSS.
It is working for SP Pages.
Unfortunately, i did not manage for the menu to use the Open Sans font.
I already added code to custom.css but it did not work.
.sp-megamenu-parent > li > a {
font-family: 'Open Sans', sans-serif;
text-decoration: none;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSans-MediumItalic.woff2') format('woff2');
font-weight: 500;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSans-Light.woff2') format('woff2');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}