OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkTypeface_DEFINED | 10 #ifndef SkTypeface_DEFINED |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 */ | 194 */ |
195 int getUnitsPerEm() const; | 195 int getUnitsPerEm() const; |
196 | 196 |
197 /** | 197 /** |
198 * Return a stream for the contents of the font data, or NULL on failure. | 198 * Return a stream for the contents of the font data, or NULL on failure. |
199 * If ttcIndex is not null, it is set to the TrueTypeCollection index | 199 * If ttcIndex is not null, it is set to the TrueTypeCollection index |
200 * of this typeface within the stream, or 0 if the stream is not a | 200 * of this typeface within the stream, or 0 if the stream is not a |
201 * collection. | 201 * collection. |
202 */ | 202 */ |
203 SkStream* openStream(int* ttcIndex) const; | 203 SkStream* openStream(int* ttcIndex) const; |
204 SkScalerContext* createScalerContext(const SkDescriptor*) const; | 204 SkScalerContext* createScalerContext(const SkDescriptor*) const; |
bungeman-skia
2013/05/31 14:24:18
For the moment I don't have an issue with these be
| |
205 | 205 |
206 // for proxy | |
207 void filterRec(SkScalerContextRec* rec) const { | |
208 this->onFilterRec(rec); | |
209 } | |
210 void getFontDescriptor(SkFontDescriptor* desc, bool* isLocal) const { | |
211 this->onGetFontDescriptor(desc, isLocal); | |
212 } | |
213 | |
206 protected: | 214 protected: |
207 /** uniqueID must be unique and non-zero | 215 /** uniqueID must be unique and non-zero |
208 */ | 216 */ |
209 SkTypeface(Style style, SkFontID uniqueID, bool isFixedPitch = false); | 217 SkTypeface(Style style, SkFontID uniqueID, bool isFixedPitch = false); |
210 virtual ~SkTypeface(); | 218 virtual ~SkTypeface(); |
211 | 219 |
212 /** Sets the fixedPitch bit. If used, must be called in the constructor. */ | 220 /** Sets the fixedPitch bit. If used, must be called in the constructor. */ |
213 void setIsFixedPitch(bool isFixedPitch) { fIsFixedPitch = isFixedPitch; } | 221 void setIsFixedPitch(bool isFixedPitch) { fIsFixedPitch = isFixedPitch; } |
214 | 222 |
215 friend class SkScalerContext; | 223 friend class SkScalerContext; |
(...skipping 21 matching lines...) Expand all Loading... | |
237 | 245 |
238 friend class SkPaint; | 246 friend class SkPaint; |
239 friend class SkGlyphCache; // GetDefaultTypeface | 247 friend class SkGlyphCache; // GetDefaultTypeface |
240 // just so deprecated fonthost can call protected methods | 248 // just so deprecated fonthost can call protected methods |
241 friend class SkFontHost; | 249 friend class SkFontHost; |
242 | 250 |
243 typedef SkWeakRefCnt INHERITED; | 251 typedef SkWeakRefCnt INHERITED; |
244 }; | 252 }; |
245 | 253 |
246 #endif | 254 #endif |
OLD | NEW |