summaryrefslogtreecommitdiff
path: root/panel
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-03-20 06:05:21 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-03-20 06:05:21 +0100
commit28b0c58f3bbeb41a5e0114d76186d0f3bc18ee1e (patch)
treea7f2dee45f26e1d3085f7bfba35bf32ba390336e /panel
parent6a7760959081af577ad2b654339fadbf69c119be (diff)
Unity: Don't use "gtk-xft-dpi" setting for text-scaling, but our own value
(bzr r3725.7.6)
Diffstat (limited to 'panel')
-rw-r--r--panel/PanelIndicatorEntryView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/panel/PanelIndicatorEntryView.cpp b/panel/PanelIndicatorEntryView.cpp
index 42aff3fbf..d147d8c77 100644
--- a/panel/PanelIndicatorEntryView.cpp
+++ b/panel/PanelIndicatorEntryView.cpp
@@ -469,6 +469,7 @@ void PanelIndicatorEntryView::Refresh()
std::shared_ptr<PangoFontDescription> desc(pango_font_description_from_string(font.c_str()), pango_font_description_free);
pango_context_set_font_description(context, desc.get());
pango_context_set_language(context, gtk_get_default_language());
+ pango_cairo_context_set_resolution(context, 96.0 * Settings::Instance().font_scaling());
label.erase(std::remove(label.begin(), label.end(), '_'), label.end());
layout = pango_layout_new(context);