summaryrefslogtreecommitdiffstats
path: root/gfx/platform_font_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 19:40:52 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 19:40:52 +0000
commit761a23dc57767c16599b03df11547cc810d31968 (patch)
tree7d5ca17842c75a30c723d80982fbb5d20b38717c /gfx/platform_font_gtk.cc
parent800065dcdca61a5012b3e01059fab456d612e101 (diff)
downloadchromium_src-761a23dc57767c16599b03df11547cc810d31968.zip
chromium_src-761a23dc57767c16599b03df11547cc810d31968.tar.gz
chromium_src-761a23dc57767c16599b03df11547cc810d31968.tar.bz2
[gtk] make tab title font irrespective of display DPI.
The font size is changed from 9 to 13 in order to offset the new correction. The font has the same same pixel size that was displayed before on my 101 DPI display. BUG=62536 TEST=using Xephyr -dpi XXX Review URL: http://codereview.chromium.org/4837002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/platform_font_gtk.cc')
-rw-r--r--gfx/platform_font_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/platform_font_gtk.cc b/gfx/platform_font_gtk.cc
index 5ed7793..7633c10 100644
--- a/gfx/platform_font_gtk.cc
+++ b/gfx/platform_font_gtk.cc
@@ -135,7 +135,7 @@ PlatformFontGtk::PlatformFontGtk(NativeFont native_font) {
// font_size_ is treated as scaled (see comment in GetPangoScaleFactor). If
// we get here the font size is absolute though, and we need to invert the
// scale so that when scaled in the rest of this class everything lines up.
- size /= PlatformFontGtk::GetPangoScaleFactor();
+ size /= GetPangoScaleFactor();
}
// Find best match font for |family_name| to make sure we can get
@@ -350,7 +350,7 @@ void PlatformFontGtk::PaintSetup(SkPaint* paint) const {
paint->setAntiAlias(false);
paint->setSubpixelText(false);
paint->setTextSize(
- SkFloatToScalar(font_size_ * PlatformFontGtk::GetPangoScaleFactor()));
+ SkFloatToScalar(font_size_ * GetPangoScaleFactor()));
paint->setTypeface(typeface_);
paint->setFakeBoldText((gfx::Font::BOLD & style_) && !typeface_->isBold());
paint->setTextSkewX((gfx::Font::ITALIC & style_) && !typeface_->isItalic() ?