linux: Round font sizes when going from points to pixels.
Round point-based Pango font sizes to the nearest pixel. Otherwise, we can end up with smaller UI fonts than GTK+ 2.0 apps in some cases. This seems to be in line with what get_scaled_size() does in Pango's pango/pangofc-fontmap.c, and gives me identically sized text in Gimp 2.6.12 and Chrome when I set the Gtk/FontName XSETTINGS property to "Arial 10". Note that Chrome doesn't currently honor additional fine-grained configuration performed via FontConfig, like disabling antialiasing for fonts of a certain size. That'll happen in a separate change. BUG=375824 Review URL: https://codereview.chromium.org/377413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282204 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment