DefaultFontSize field in Adium message styles is in px, not pt
@wjt
Submitted by Will Thompson Link to original bug (#639002)
Description
Empathy reads the DefaultFontSize from message styles' Info.plist, and stuffs it into the WebKitWebSettings:default-font-size property. Unfortunately, the value specified in Adium themes is in pixels, and the WebKitWebSettings:default-font-size property in WebKitGtk is in points, so this makes all the fonts enormous.
Says Marc Ordinas i Llopis: “… it's in points … it's then converted into pixels before passing it along to the engine, because [WebKit] internally uses pixels. The conversion is hard-coded to 96dpi, though. :(”. So a correct fix would involve WebKitGtk exposing a property to specify the default font size in pixels; until such a property exists, we could convert the value from pixels to points at 96dpi, pass it into WebKitGtk, which would then convert the value from points to pixels at 96dpi and pass it into WebKit…
Themes written for Empathy should probably not specify absolute font sizes at all: they should use relative font sizes in CSS, and Gnome's document font size should be used. But if we want to support themes targeting Adium, we need to get this right.
Version: 2.32.x