Fallback fonts?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
alan_sh
 
 
Posts: 1820
Joined: Tue Jan 01, 2019 5:50 pm

Fallback fonts?

Post 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
User avatar
Pablo
 
Posts: 23222
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Fallback fonts?

Post 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.
User avatar
wwonderfull
 
 
Posts: 1555
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Fallback fonts?

Post 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');
}
Post Reply