Userfonts working for webpage?
-
I have my vivaldi -> settings -> webpage -> fonts, all set to SF Pro, however it doesn't change the font settings on the webpage...
However, if I use "Dark Reader" extension and set the font, the webpage display the correct font settings...
-
@HateNewOpera Because the settings can't change the fonts defined for the webpage, but Dark Reader use Javascript to change them.
You can change them with a style in CSS:
font-size: 36px !important; font-family:Lato !important;
But if the webpage in his style used the !important then you only can change them using javascript.
In some webpages that I use a style, I can't increase the size with CSS because they use !important, so I have to use an app to zoom text.
-
Hmm vivaldi should have an option to over ride the webpage specifications...
More power to the user?
-
It's pretty standard behavior for browsers. The font options in your browser settings effect pages that don't have fonts definitions locked down as @barbudo2005 described. This is pretty important for web developers to have this kind of control. If you change the font for certain pages you'll significantly damage the page such that how to use it is no longer obvious -- buttons & other controls disappear and are replaced by a meaningless box.
The font you choose in the settings will apply to some pages where this kind of thing isn't a concern. For example, the font you set will be what is used to display Wikipedia's pages.
If you want to override fonts on pages that don't use the fonts in your settings, that requires a bit more work, as it should. The issue with just having a font option in the main settings that can override every single page is that it exposes many, perhaps even most, users to broken pages that they don't understand how to fix. People that know how to override fonts for every page are far more likely to understand the risks, and be able to identify when their font override is breaking the page and know how to fix it. For the (likely) majority of users, they would just think that Vivaldi breaks the page and is unable to display many websites, negatively impacting the browser's reputation.
So, if you want to override the fonts on sites that don't use the browser settings, you can do so easily by using an extension like Stylus. This is what I use, and am able to choose a font from a dropdown in the extension's popup dialog on the fly (changes the font without reloading the page). If you go down this road, keep in mind that doing this can break pages, and when you see broken pages try disabling your style to fix it.
-