| OLD | NEW |
| 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/files/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 | 14 |
| 15 const char* const kSystemFontsForFontconfig[] = { | 15 const char* const kSystemFontsForFontconfig[] = { |
| 16 "/usr/share/fonts/truetype/kochi/kochi-gothic.ttf", | 16 "/usr/share/fonts/truetype/kochi/kochi-gothic.ttf", |
| 17 "/usr/share/fonts/truetype/kochi/kochi-mincho.ttf", | 17 "/usr/share/fonts/truetype/kochi/kochi-mincho.ttf", |
| 18 "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", | 18 "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", |
| 19 "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", | 19 "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const std::string& preferred_family) { | 146 const std::string& preferred_family) { |
| 147 return base::StringPrintf( | 147 return base::StringPrintf( |
| 148 " <alias>\n" | 148 " <alias>\n" |
| 149 " <family>%s</family>\n" | 149 " <family>%s</family>\n" |
| 150 " <prefer><family>%s</family></prefer>\n" | 150 " <prefer><family>%s</family></prefer>\n" |
| 151 " </alias>\n", | 151 " </alias>\n", |
| 152 original_family.c_str(), preferred_family.c_str()); | 152 original_family.c_str(), preferred_family.c_str()); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace gfx | 155 } // namespace gfx |
| OLD | NEW |