| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/platform_font_linux.h" | 5 #include "ui/gfx/platform_font_linux.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "third_party/skia/include/core/SkFontStyle.h" | 16 #include "third_party/skia/include/core/SkFontStyle.h" |
| 17 #include "third_party/skia/include/core/SkPaint.h" | 17 #include "third_party/skia/include/core/SkPaint.h" |
| 18 #include "third_party/skia/include/core/SkString.h" | 18 #include "third_party/skia/include/core/SkString.h" |
| 19 #include "third_party/skia/include/core/SkTypeface.h" | |
| 20 #include "ui/gfx/canvas.h" | 19 #include "ui/gfx/canvas.h" |
| 21 #include "ui/gfx/font.h" | 20 #include "ui/gfx/font.h" |
| 22 #include "ui/gfx/font_list.h" | 21 #include "ui/gfx/font_list.h" |
| 23 #include "ui/gfx/linux_font_delegate.h" | 22 #include "ui/gfx/linux_font_delegate.h" |
| 24 #include "ui/gfx/text_utils.h" | 23 #include "ui/gfx/text_utils.h" |
| 25 | 24 |
| 26 namespace gfx { | 25 namespace gfx { |
| 27 namespace { | 26 namespace { |
| 28 | 27 |
| 29 // The font family name which is used when a user's application font for | 28 // The font family name which is used when a user's application font for |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 return new PlatformFontLinux; | 307 return new PlatformFontLinux; |
| 309 } | 308 } |
| 310 | 309 |
| 311 // static | 310 // static |
| 312 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name, | 311 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name, |
| 313 int font_size) { | 312 int font_size) { |
| 314 return new PlatformFontLinux(font_name, font_size); | 313 return new PlatformFontLinux(font_name, font_size); |
| 315 } | 314 } |
| 316 | 315 |
| 317 } // namespace gfx | 316 } // namespace gfx |
| OLD | NEW |