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

Unified Diff: ui/gfx/test/fontconfig_util_linux.cc

Issue 415043007: linux: Add some font-family-related FontRenderParams tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor updates 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/test/fontconfig_util_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/test/fontconfig_util_linux.cc
diff --git a/ui/gfx/test/fontconfig_util_linux.cc b/ui/gfx/test/fontconfig_util_linux.cc
index d6554a1bd8060b633687e1ac2239634ffa73ad33..46d7f0ffee52b05db2d7bc930818953dd49b37fe 100644
--- a/ui/gfx/test/fontconfig_util_linux.cc
+++ b/ui/gfx/test/fontconfig_util_linux.cc
@@ -142,4 +142,14 @@ std::string CreateFontconfigTestStanza(const std::string& name,
name.c_str(), op.c_str(), type.c_str(), value.c_str(), type.c_str());
}
+std::string CreateFontconfigAliasStanza(const std::string& original_family,
+ const std::string& preferred_family) {
+ return base::StringPrintf(
+ " <alias>\n"
+ " <family>%s</family>\n"
+ " <prefer><family>%s</family></prefer>\n"
+ " </alias>\n",
+ original_family.c_str(), preferred_family.c_str());
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/test/fontconfig_util_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698