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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 void setMinSizeForSubpixel(float size) { m_minSizeForSubpixel = size; } | 127 void setMinSizeForSubpixel(float size) { m_minSizeForSubpixel = size; } |
128 float minSizeForSubpixel() const { return m_minSizeForSubpixel; } | 128 float minSizeForSubpixel() const { return m_minSizeForSubpixel; } |
129 void setHinting(SkPaint::Hinting style) | 129 void setHinting(SkPaint::Hinting style) |
130 { | 130 { |
131 m_style.useAutoHint = 0; | 131 m_style.useAutoHint = 0; |
132 m_style.hintStyle = style; | 132 m_style.hintStyle = style; |
133 } | 133 } |
134 #endif | 134 #endif |
135 bool fontContainsCharacter(UChar32 character); | 135 bool fontContainsCharacter(UChar32 character); |
136 | 136 |
137 #if ENABLE(OPENTYPE_VERTICAL) | |
138 PassRefPtr<OpenTypeVerticalData> verticalData() const; | 137 PassRefPtr<OpenTypeVerticalData> verticalData() const; |
139 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; | 138 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; |
140 #endif | |
141 | 139 |
142 #if !OS(MACOSX) | 140 #if !OS(MACOSX) |
143 // The returned styles are all actual styles without FontRenderStyle::NoPref
erence. | 141 // The returned styles are all actual styles without FontRenderStyle::NoPref
erence. |
144 const FontRenderStyle& fontRenderStyle() const { return m_style; } | 142 const FontRenderStyle& fontRenderStyle() const { return m_style; } |
145 #endif | 143 #endif |
146 void setupPaint(SkPaint*, GraphicsContext* = 0) const; | 144 void setupPaint(SkPaint*, GraphicsContext* = 0) const; |
147 | 145 |
148 #if OS(WIN) | 146 #if OS(WIN) |
149 int paintTextFlags() const { return m_paintTextFlags; } | 147 int paintTextFlags() const { return m_paintTextFlags; } |
150 #else | 148 #else |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 int m_paintTextFlags; | 201 int m_paintTextFlags; |
204 bool m_useSubpixelPositioning; | 202 bool m_useSubpixelPositioning; |
205 unsigned m_minSizeForAntiAlias; | 203 unsigned m_minSizeForAntiAlias; |
206 float m_minSizeForSubpixel; | 204 float m_minSizeForSubpixel; |
207 #endif | 205 #endif |
208 }; | 206 }; |
209 | 207 |
210 } // namespace blink | 208 } // namespace blink |
211 | 209 |
212 #endif // ifdef FontPlatformData_h | 210 #endif // ifdef FontPlatformData_h |
OLD | NEW |