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