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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/test/fontconfig_util_linux.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/test/fontconfig_util_linux.h" 5 #include "ui/gfx/test/fontconfig_util_linux.h"
6 6
7 #include <fontconfig/fontconfig.h> 7 #include <fontconfig/fontconfig.h>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const std::string& op, 135 const std::string& op,
136 const std::string& type, 136 const std::string& type,
137 const std::string& value) { 137 const std::string& value) {
138 return base::StringPrintf( 138 return base::StringPrintf(
139 " <test name=\"%s\" compare=\"%s\" qual=\"any\">\n" 139 " <test name=\"%s\" compare=\"%s\" qual=\"any\">\n"
140 " <%s>%s</%s>\n" 140 " <%s>%s</%s>\n"
141 " </test>\n", 141 " </test>\n",
142 name.c_str(), op.c_str(), type.c_str(), value.c_str(), type.c_str()); 142 name.c_str(), op.c_str(), type.c_str(), value.c_str(), type.c_str());
143 } 143 }
144 144
145 std::string CreateFontconfigAliasStanza(const std::string& original_family,
146 const std::string& preferred_family) {
147 return base::StringPrintf(
148 " <alias>\n"
149 " <family>%s</family>\n"
150 " <prefer><family>%s</family></prefer>\n"
151 " </alias>\n",
152 original_family.c_str(), preferred_family.c_str());
153 }
154
145 } // namespace gfx 155 } // namespace gfx
OLDNEW
« 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