| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 size_t length, void* data) const = 0; | 360 size_t length, void* data) const = 0; |
| 361 | 361 |
| 362 virtual bool onComputeBounds(SkRect*) const; | 362 virtual bool onComputeBounds(SkRect*) const; |
| 363 | 363 |
| 364 private: | 364 private: |
| 365 friend class SkGTypeface; | 365 friend class SkGTypeface; |
| 366 friend class SkPDFFont; | 366 friend class SkPDFFont; |
| 367 friend class SkPDFCIDFont; | 367 friend class SkPDFCIDFont; |
| 368 friend class GrPathRendering; | 368 friend class GrPathRendering; |
| 369 friend class GrGLPathRendering; | 369 friend class GrGLPathRendering; |
| 370 friend class SkRandomTypeface; // For debugging |
| 370 | 371 |
| 371 /** Retrieve detailed typeface metrics. Used by the PDF backend. | 372 /** Retrieve detailed typeface metrics. Used by the PDF backend. |
| 372 @param perGlyphInfo Indicate what glyph specific information (advances, | 373 @param perGlyphInfo Indicate what glyph specific information (advances, |
| 373 names, etc.) should be populated. | 374 names, etc.) should be populated. |
| 374 @param glyphIDs For per-glyph info, specify subset of the font by | 375 @param glyphIDs For per-glyph info, specify subset of the font by |
| 375 giving glyph ids. Each integer represents a glyph | 376 giving glyph ids. Each integer represents a glyph |
| 376 id. Passing NULL means all glyphs in the font. | 377 id. Passing NULL means all glyphs in the font. |
| 377 @param glyphIDsCount Number of elements in subsetGlyphIds. Ignored if | 378 @param glyphIDsCount Number of elements in subsetGlyphIds. Ignored if |
| 378 glyphIDs is NULL. | 379 glyphIDs is NULL. |
| 379 @return The returned object has already been referenced. | 380 @return The returned object has already been referenced. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 395 SkFontStyle fStyle; | 396 SkFontStyle fStyle; |
| 396 bool fIsFixedPitch; | 397 bool fIsFixedPitch; |
| 397 | 398 |
| 398 friend class SkPaint; | 399 friend class SkPaint; |
| 399 friend class SkGlyphCache; // GetDefaultTypeface | 400 friend class SkGlyphCache; // GetDefaultTypeface |
| 400 | 401 |
| 401 typedef SkWeakRefCnt INHERITED; | 402 typedef SkWeakRefCnt INHERITED; |
| 402 }; | 403 }; |
| 403 | 404 |
| 404 #endif | 405 #endif |
| OLD | NEW |