| OLD | NEW |
| 1 /* Copyright (c) 2010, Google Inc. All rights reserved. | 1 /* Copyright (c) 2010, Google Inc. All rights reserved. |
| 2 * | 2 * |
| 3 * Redistribution and use in source and binary forms, with or without | 3 * Redistribution and use in source and binary forms, with or without |
| 4 * modification, are permitted provided that the following conditions are | 4 * modification, are permitted provided that the following conditions are |
| 5 * met: | 5 * met: |
| 6 * | 6 * |
| 7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * * Redistributions in binary form must reproduce the above | 9 * * Redistributions in binary form must reproduce the above |
| 10 * copyright notice, this list of conditions and the following disclaimer | 10 * copyright notice, this list of conditions and the following disclaimer |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef FontRenderStyle_h | 30 #ifndef FontRenderStyle_h |
| 31 #define FontRenderStyle_h | 31 #define FontRenderStyle_h |
| 32 | 32 |
| 33 #include "SkFontStyle.h" | 33 #include "SkFontStyle.h" |
| 34 #include "SkPaint.h" | 34 #include "SkPaint.h" |
| 35 #include "platform/PlatformExport.h" | 35 #include "platform/PlatformExport.h" |
| 36 #include "wtf/Allocator.h" | 36 #include "platform/wtf/Allocator.h" |
| 37 #include "wtf/text/CString.h" | 37 #include "platform/wtf/text/CString.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 // FontRenderStyle describes the user's preferences for rendering a font at a | 41 // FontRenderStyle describes the user's preferences for rendering a font at a |
| 42 // given size. | 42 // given size. |
| 43 struct FontRenderStyle { | 43 struct FontRenderStyle { |
| 44 DISALLOW_NEW(); | 44 DISALLOW_NEW(); |
| 45 enum { | 45 enum { |
| 46 NoPreference = 2, | 46 NoPreference = 2, |
| 47 }; | 47 }; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 char useAntiAlias; // antialias glyph shapes | 85 char useAntiAlias; // antialias glyph shapes |
| 86 // use subpixel rendering (partially-filled pixels) | 86 // use subpixel rendering (partially-filled pixels) |
| 87 char useSubpixelRendering; | 87 char useSubpixelRendering; |
| 88 // use subpixel positioning (fractional X positions for glyphs) | 88 // use subpixel positioning (fractional X positions for glyphs) |
| 89 char useSubpixelPositioning; | 89 char useSubpixelPositioning; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif // FontRenderStyle_h | 94 #endif // FontRenderStyle_h |
| OLD | NEW |