The appropriate font handling code in WebKitWebView is only used in the initial display of the web view (screen-changed). The notification callback simply passes the values of the font size properties to WebCore, whithout taking the Pango factor and DPI into account. In the end this means that the font size is wrong as soon as the user attempts to change it at runtime, such as in a Preference dialog.
Created attachment 25105 [details] Update fonts properly This change moves the DPI/ conversion into a helper function and applies the logic in the notification callback. From a bit of testing in Midori it seems to work properly now.
Comment on attachment 25105 [details] Update fonts properly Okay, this mostly moving things around and using the new webViewGetDPI API.
2008-11-16 Christian Dywan <christian@twoasts.de> Reviewed by Holger Freyther. https://bugs.webkit.org/show_bug.cgi?id=22207 [Gtk] Font sizes are not handled properly when updated at runtime * webkit/webkitwebview.cpp: Move the DPI/ conversion into a helper function and apply the logic in the notification callback.