| 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_win.h" | 5 #include "ui/gfx/platform_font_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <dwrite.h> | 8 #include <dwrite.h> |
| 9 #include <limits.h> |
| 9 #include <math.h> | 10 #include <math.h> |
| 10 #include <stdint.h> | 11 #include <stdint.h> |
| 11 #include <wchar.h> | 12 #include <wchar.h> |
| 12 | 13 |
| 13 #include <algorithm> | 14 #include <algorithm> |
| 14 | 15 |
| 15 #include "base/debug/alias.h" | 16 #include "base/debug/alias.h" |
| 16 #include "base/logging.h" | 17 #include "base/logging.h" |
| 17 #include "base/macros.h" | 18 #include "base/macros.h" |
| 18 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 return new PlatformFontWin(native_font); | 724 return new PlatformFontWin(native_font); |
| 724 } | 725 } |
| 725 | 726 |
| 726 // static | 727 // static |
| 727 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name, | 728 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name, |
| 728 int font_size) { | 729 int font_size) { |
| 729 return new PlatformFontWin(font_name, font_size); | 730 return new PlatformFontWin(font_name, font_size); |
| 730 } | 731 } |
| 731 | 732 |
| 732 } // namespace gfx | 733 } // namespace gfx |
| OLD | NEW |