OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 unsigned minSizeForAntiAlias() const { return m_minSizeForAntiAlias; } | 144 unsigned minSizeForAntiAlias() const { return m_minSizeForAntiAlias; } |
145 void setMinSizeForSubpixel(float size) { m_minSizeForSubpixel = size; } | 145 void setMinSizeForSubpixel(float size) { m_minSizeForSubpixel = size; } |
146 float minSizeForSubpixel() const { return m_minSizeForSubpixel; } | 146 float minSizeForSubpixel() const { return m_minSizeForSubpixel; } |
147 #endif | 147 #endif |
148 bool fontContainsCharacter(UChar32 character); | 148 bool fontContainsCharacter(UChar32 character); |
149 | 149 |
150 PassRefPtr<OpenTypeVerticalData> verticalData() const; | 150 PassRefPtr<OpenTypeVerticalData> verticalData() const; |
151 PassRefPtr<SharedBuffer> openTypeTable(SkFontTableTag) const; | 151 PassRefPtr<SharedBuffer> openTypeTable(SkFontTableTag) const; |
152 | 152 |
153 #if OS(LINUX) || OS(ANDROID) | 153 #if OS(LINUX) || OS(ANDROID) |
154 // The returned styles are all actual styles without FontRenderStyle::NoPrefer
ence. | 154 // The returned styles are all actual styles without |
| 155 // FontRenderStyle::NoPreference. |
155 const FontRenderStyle& getFontRenderStyle() const { return m_style; } | 156 const FontRenderStyle& getFontRenderStyle() const { return m_style; } |
156 #endif | 157 #endif |
157 void setupPaint(SkPaint*, float deviceScaleFactor = 1, const Font* = 0) const; | 158 void setupPaint(SkPaint*, float deviceScaleFactor = 1, const Font* = 0) const; |
158 | 159 |
159 #if OS(WIN) | 160 #if OS(WIN) |
160 int paintTextFlags() const { return m_paintTextFlags; } | 161 int paintTextFlags() const { return m_paintTextFlags; } |
161 #endif | 162 #endif |
162 | 163 |
163 private: | 164 private: |
164 #if OS(WIN) | 165 #if OS(WIN) |
(...skipping 21 matching lines...) Expand all Loading... |
186 #if OS(WIN) | 187 #if OS(WIN) |
187 int m_paintTextFlags; | 188 int m_paintTextFlags; |
188 unsigned m_minSizeForAntiAlias; | 189 unsigned m_minSizeForAntiAlias; |
189 float m_minSizeForSubpixel; | 190 float m_minSizeForSubpixel; |
190 #endif | 191 #endif |
191 }; | 192 }; |
192 | 193 |
193 } // namespace blink | 194 } // namespace blink |
194 | 195 |
195 #endif // ifdef FontPlatformData_h | 196 #endif // ifdef FontPlatformData_h |
OLD | NEW |