Page 1 of 1

Fallback fonts?

Posted: Fri Mar 07, 2025 11:14 am
by alan_sh
Does WWB allow the use of fallback fonts?

Generally on web font-family will be set with fallbacks in case original font is not present - like this "helvetica - arial - sans-serif"

Can WWB set this up? If so, how?

Thanks

Alan

Re: Fallback fonts?

Posted: Fri Mar 07, 2025 12:16 pm
by Pablo
No, there is no option for fallback fonts.
However, in my opinion this is outdated because with @font-face (or Google Fonts) you can make sure the font work in all browsers.

Re: Fallback fonts?

Posted: Fri Mar 07, 2025 1:38 pm
by wwonderfull
alan_sh wrote: Fri Mar 07, 2025 11:14 am Does WWB allow the use of fallback fonts?

Generally on web font-family will be set with fallbacks in case original font is not present - like this "helvetica - arial - sans-serif"

Can WWB set this up? If so, how?

Thanks

Alan
https://www.w3schools.com/CSSref/css_fo ... lbacks.php

fallback fonts are usually done like this:

Code: Select all

body {
    font-family: "Open Sans", Arial;
}
but you have to make sure that on your css stylesheet the @font-face specifies the fonts

for example:

Code: Select all

@font-face {
    font-family: 'Open Sans'; /* Name of the font */
    font-style: normal;       /* Style of the font (e.g., normal, italic) */
    font-weight: 400;         /* Font weight (e.g., 400 = regular) */
    src: local('Open Sans'),  /* Use local copy if available */
         url('https://yourdomain.com/fonts/open-sans-regular.woff2') format('woff2'),
         url('https://yourdomain.com/fonts/open-sans-regular.woff') format('woff');
}