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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 FontPlatformData(sk_sp<SkTypeface>, | 102 FontPlatformData(sk_sp<SkTypeface>, |
103 const char* name, | 103 const char* name, |
104 float textSize, | 104 float textSize, |
105 bool syntheticBold, | 105 bool syntheticBold, |
106 bool syntheticItalic, | 106 bool syntheticItalic, |
107 FontOrientation = FontOrientation::Horizontal); | 107 FontOrientation = FontOrientation::Horizontal); |
108 ~FontPlatformData(); | 108 ~FontPlatformData(); |
109 | 109 |
110 #if OS(MACOSX) | 110 #if OS(MACOSX) |
111 CTFontRef ctFont() const; | 111 CTFontRef ctFont() const; |
112 CGFontRef cgFont() const; | |
113 #endif | 112 #endif |
114 | 113 |
115 String fontFamilyName() const; | 114 String fontFamilyName() const; |
116 float size() const { return m_textSize; } | 115 float size() const { return m_textSize; } |
117 bool syntheticBold() const { return m_syntheticBold; } | 116 bool syntheticBold() const { return m_syntheticBold; } |
118 bool syntheticItalic() const { return m_syntheticItalic; } | 117 bool syntheticItalic() const { return m_syntheticItalic; } |
119 | 118 |
120 SkTypeface* typeface() const; | 119 SkTypeface* typeface() const; |
121 HarfBuzzFace* harfBuzzFace() const; | 120 HarfBuzzFace* harfBuzzFace() const; |
122 bool hasSpaceInLigaturesOrKerning(TypesettingFeatures) const; | 121 bool hasSpaceInLigaturesOrKerning(TypesettingFeatures) const; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 #if OS(WIN) | 185 #if OS(WIN) |
187 int m_paintTextFlags; | 186 int m_paintTextFlags; |
188 unsigned m_minSizeForAntiAlias; | 187 unsigned m_minSizeForAntiAlias; |
189 float m_minSizeForSubpixel; | 188 float m_minSizeForSubpixel; |
190 #endif | 189 #endif |
191 }; | 190 }; |
192 | 191 |
193 } // namespace blink | 192 } // namespace blink |
194 | 193 |
195 #endif // ifdef FontPlatformData_h | 194 #endif // ifdef FontPlatformData_h |
OLD | NEW |