[Fonts] Force using default fonts for corresponding generic font styles
-
Hi Vivaldi Developers,
I'd like to suggest a feature regarding font customisation. I want to force all website to use the generic font styles (serif, sans-serif, monospace, cursive and fantasy) I set in Vivaldi for page rendering respectively. My goal is to make the typefaces consistent across all websites as I have a relatively strong preference for typefaces.
That is, for each element on a web page, if the value of the
font-family
attribute contains one of the generic font styles mentioned above, use the corresponding font of that style I set in Vivaldi. If there are more than one generic font styles for an element, use the first one. For elements without any generic font styles, use thestandard
font.Here's an example:
body { font-family: 'Arial', sans-serif; } /* use Gill Sans */ .content { font-family: 'Times', 'Georgia', serif; } /* use Charter*/ pre { font-family: 'courier', monospace; } /* use Go Mono*/ .signature { font-family: 'some cursive font', cursive; } /* use Bradley Hand */ .dream { font-family: 'some fantasy font', fantasy; } /* use Papyrus */ .mess { font-family: 'cool font', serif, cursive; } /* use Charter */ /* use Go (Standard) */ .interesting { font-family: 'comic'; } /* no generic font style specified */ .boring { /* no font-family specified */ }
Best Regards,
James -
Hi, please vote for Force default fonts.
There is a little difference for how elements w/o generic font families specified are handled, but you’ll find the reason for this difference there.
-
Ppafflick moved this topic from Mobile Browser on