Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontRenderStyle.h

Issue 1939363002: Remove unused FontRenderStyle from Windows build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright (c) 2010, Google Inc. All rights reserved.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are
5 * met:
6 *
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following disclaimer
11 * in the documentation and/or other materials provided with the
12 * distribution.
13 * * Neither the name of Google Inc. nor the names of its
14 * contributors may be used to endorse or promote products derived from
15 * this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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.
28 */
29
30 #ifndef FontRenderStyle_h
31 #define FontRenderStyle_h
32
33 #include "wtf/Allocator.h"
34
35 namespace blink {
36
37 // FontRenderStyle describes the user's preferences for rendering a font at a
38 // given size.
39 struct FontRenderStyle {
40 DISALLOW_NEW();
41 enum {
42 NoPreference = 2,
43 };
44
45 FontRenderStyle()
46 : useBitmaps(0)
47 , useAutoHint(0)
48 , useHinting(0)
49 , hintStyle(0)
50 , useAntiAlias(0)
51 , useSubpixelRendering(0)
52 , useSubpixelPositioning(0) { }
53
54 bool operator==(const FontRenderStyle& a) const
55 {
56 return useBitmaps == a.useBitmaps
57 && useAutoHint == a.useAutoHint
58 && useHinting == a.useHinting
59 && hintStyle == a.hintStyle
60 && useAntiAlias == a.useAntiAlias
61 && useSubpixelRendering == a.useSubpixelRendering
62 && useSubpixelPositioning == a.useSubpixelPositioning;
63 }
64
65 // Each of the use* members below can take one of three values:
66 // 0: off
67 // 1: on
68 // NoPreference: no preference expressed
69 char useBitmaps; // use embedded bitmap strike if possible
70 char useAutoHint; // use 'auto' hinting (FreeType specific)
71 char useHinting; // hint glyphs to the pixel grid
72 char hintStyle; // level of hinting, 0..3
73 char useAntiAlias; // antialias glyph shapes
74 char useSubpixelRendering; // use subpixel rendering (partially-filled pixel s)
75 char useSubpixelPositioning; // use subpixel positioning (fractional X posit ions for glyphs)
76 };
77
78 } // namespace blink
79
80 #endif // FontRenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698