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

Side by Side Diff: ui/gfx/test/fontconfig_util_linux.cc

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « ui/gfx/test/fontconfig_util_linux.h ('k') | ui/gfx/test/run_all_unittests.cc » ('j') | 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/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h"
11 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 16
16 const char* const kSystemFontsForFontconfig[] = { 17 const char* const kSystemFontsForFontconfig[] = {
17 "/usr/share/fonts/truetype/kochi/kochi-gothic.ttf", 18 "/usr/share/fonts/truetype/kochi/kochi-gothic.ttf",
18 "/usr/share/fonts/truetype/kochi/kochi-mincho.ttf", 19 "/usr/share/fonts/truetype/kochi/kochi-mincho.ttf",
19 "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", 20 "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf",
20 "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", 21 "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf",
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 const std::string& preferred_family) { 159 const std::string& preferred_family) {
159 return base::StringPrintf( 160 return base::StringPrintf(
160 " <alias>\n" 161 " <alias>\n"
161 " <family>%s</family>\n" 162 " <family>%s</family>\n"
162 " <prefer><family>%s</family></prefer>\n" 163 " <prefer><family>%s</family></prefer>\n"
163 " </alias>\n", 164 " </alias>\n",
164 original_family.c_str(), preferred_family.c_str()); 165 original_family.c_str(), preferred_family.c_str());
165 } 166 }
166 167
167 } // namespace gfx 168 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/test/fontconfig_util_linux.h ('k') | ui/gfx/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698