Change font address
-
-
You have two options:
- Use QWebSettings and specify the font in C# ++
Example:
@QWebSettings* websettings = QWebSettings::globalSettings();
websettings->setFontFamily(QWebSettings::StandardFont, font.family());@Don't forget to run that before instantiating the QWebView.
- Use HTML 5's web font feature + CSS. In the <head></head> section of your page put the following:
@
<link href='http://fonts.googleapis.com/css?family=Allerta' rel='stylesheet' type='text/css' />
@Then you can use the font in your CSS. You can of course change the font to your own, as long as you have a URL for it. I included one of Google's fonts just as an example.