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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 CGFontRef cgFont() const; | 88 CGFontRef cgFont() const; |
89 #endif | 89 #endif |
90 | 90 |
91 String fontFamilyName() const; | 91 String fontFamilyName() const; |
92 float size() const { return m_textSize; } | 92 float size() const { return m_textSize; } |
93 bool syntheticBold() const { return m_syntheticBold; } | 93 bool syntheticBold() const { return m_syntheticBold; } |
94 bool syntheticItalic() const { return m_syntheticItalic; } | 94 bool syntheticItalic() const { return m_syntheticItalic; } |
95 | 95 |
96 SkTypeface* typeface() const; | 96 SkTypeface* typeface() const; |
97 HarfBuzzFace* harfBuzzFace() const; | 97 HarfBuzzFace* harfBuzzFace() const; |
| 98 bool hasSpaceInLigaturesOrKerning(TypesettingFeatures) const; |
98 SkFontID uniqueID() const; | 99 SkFontID uniqueID() const; |
99 unsigned hash() const; | 100 unsigned hash() const; |
100 | 101 |
101 FontOrientation orientation() const { return m_orientation; } | 102 FontOrientation orientation() const { return m_orientation; } |
102 bool isVerticalAnyUpright() const { return blink::isVerticalAnyUpright(m_ori
entation); } | 103 bool isVerticalAnyUpright() const { return blink::isVerticalAnyUpright(m_ori
entation); } |
103 void setOrientation(FontOrientation orientation) { m_orientation = orientati
on; } | 104 void setOrientation(FontOrientation orientation) { m_orientation = orientati
on; } |
104 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold;
} | 105 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold;
} |
105 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti
cItalic; } | 106 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti
cItalic; } |
106 bool operator==(const FontPlatformData&) const; | 107 bool operator==(const FontPlatformData&) const; |
107 const FontPlatformData& operator=(const FontPlatformData&); | 108 const FontPlatformData& operator=(const FontPlatformData&); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 int m_paintTextFlags; | 167 int m_paintTextFlags; |
167 bool m_useSubpixelPositioning; | 168 bool m_useSubpixelPositioning; |
168 unsigned m_minSizeForAntiAlias; | 169 unsigned m_minSizeForAntiAlias; |
169 float m_minSizeForSubpixel; | 170 float m_minSizeForSubpixel; |
170 #endif | 171 #endif |
171 }; | 172 }; |
172 | 173 |
173 } // namespace blink | 174 } // namespace blink |
174 | 175 |
175 #endif // ifdef FontPlatformData_h | 176 #endif // ifdef FontPlatformData_h |
OLD | NEW |