| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "gfx/font.h" | 5 #include "gfx/font.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include "gfx/platform_font_win.h" | 9 #include "gfx/platform_font_win.h" |
| 10 #endif // defined(OS_WIN) | 10 #endif // defined(OS_WIN) |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // The minimum font size is set to 5 in browser_main.cc. | 111 // The minimum font size is set to 5 in browser_main.cc. |
| 112 ScopedMinimumFontSizeCallback minimum_size(5); | 112 ScopedMinimumFontSizeCallback minimum_size(5); |
| 113 | 113 |
| 114 Font derived_font = cf.DeriveFont(-2); | 114 Font derived_font = cf.DeriveFont(-2); |
| 115 LOGFONT font_info; | 115 LOGFONT font_info; |
| 116 GetObject(derived_font.GetNativeFont(), sizeof(LOGFONT), &font_info); | 116 GetObject(derived_font.GetNativeFont(), sizeof(LOGFONT), &font_info); |
| 117 EXPECT_EQ(-6, font_info.lfHeight); | 117 EXPECT_EQ(-6, font_info.lfHeight); |
| 118 } | 118 } |
| 119 #endif | 119 #endif |
| 120 } // namespace | 120 } // namespace |
| OLD | NEW |