The font set by QWebSetting look smaller
-
i use one QWebview editWebView to edit text ,the code set the QWebView font :
@
settings()->setFontFamily(QWebSettings::StandardFont,"simsun");
settings()->setFontSize(QWebSettings::DefaultFontSize,12);
@i use another one QWebView displayWebView to display text ,using css to set text font,
@
<body >
dsdfdfsfsafd
</body>
@but i found the text in editWebView look smaller than the text in displayWebView .
why?
-
sorry ,the display test code :
<body style='"font-family:'simsun';font-size:12pt;color:#000000 ;"'>
ddddd
</body> -
the problem has resolved .
<body style=’"font-family:‘simsun’;font-size:12pt;color:#000000 ;"’> ddddd </body>
the style code is wrong :
<body style=’font-family:‘simsun’;font-size:12pt;color:#000000 ;’> ddddd </body>