| 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_pango.h" | 5 #include "ui/gfx/platform_font_pango.h" |
| 6 | 6 |
| 7 #include <fontconfig/fontconfig.h> | |
| 8 #include <pango/pango.h> | 7 #include <pango/pango.h> |
| 9 | 8 |
| 10 #include <algorithm> | 9 #include <algorithm> |
| 11 #include <string> | 10 #include <string> |
| 12 | 11 |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 15 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 17 #include "third_party/skia/include/core/SkPaint.h" | 16 #include "third_party/skia/include/core/SkPaint.h" |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 return new PlatformFontPango(native_font); | 337 return new PlatformFontPango(native_font); |
| 339 } | 338 } |
| 340 | 339 |
| 341 // static | 340 // static |
| 342 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name, | 341 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name, |
| 343 int font_size) { | 342 int font_size) { |
| 344 return new PlatformFontPango(font_name, font_size); | 343 return new PlatformFontPango(font_name, font_size); |
| 345 } | 344 } |
| 346 | 345 |
| 347 } // namespace gfx | 346 } // namespace gfx |
| OLD | NEW |