Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: ui/gfx/pango_util.h

Issue 400193004: Unify desktop Linux and Chrome OS font rendering params. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make ScopedPangoFontDescription accept a string Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/linux_font_delegate.h ('k') | ui/gfx/platform_font_pango.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/pango_util.h
diff --git a/ui/gfx/pango_util.h b/ui/gfx/pango_util.h
index 7815fd9095299ad832a8341cde72c94930c959a1..c17bdb4606ea86a6f7170fb0d4dd526e6410924d 100644
--- a/ui/gfx/pango_util.h
+++ b/ui/gfx/pango_util.h
@@ -26,6 +26,10 @@ class ScopedPangoFontDescription {
DCHECK(description);
}
+ explicit ScopedPangoFontDescription(const std::string& str) {
+ description_ = pango_font_description_from_string(str.c_str());
msw 2014/07/18 20:31:39 nit: can this be done in an initializer list?
Daniel Erat 2014/07/18 20:35:04 yep!
+ }
+
~ScopedPangoFontDescription() {
pango_font_description_free(description_);
}
« no previous file with comments | « ui/gfx/linux_font_delegate.h ('k') | ui/gfx/platform_font_pango.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698