Chromium Code Reviews| Index: trunk/include/core/SkTypeface.h |
| =================================================================== |
| --- trunk/include/core/SkTypeface.h (revision 8112) |
| +++ trunk/include/core/SkTypeface.h (working copy) |
| @@ -80,6 +80,12 @@ |
| */ |
| static bool Equal(const SkTypeface* facea, const SkTypeface* faceb); |
| + /** |
| + * Returns a ref() to the default typeface. The caller must call unref() |
| + * when they are done referencing the object. Never returns NULL. |
| + */ |
| + static SkTypeface* RefDefault(); |
|
bungeman-skia
2013/03/12 21:07:23
So all of these creates on Typeface will be shorth
reed1
2013/03/13 21:18:17
Yes, I think any runtime-configurator (fontmgr) we
|
| + |
| /** Return a new reference to the typeface that most closely matches the |
| requested familyName and style. Pass null as the familyName to return |
| the default font for the requested style. Will never return null |
| @@ -187,6 +193,8 @@ |
| */ |
| int getUnitsPerEm() const; |
| + SkStream* openStream(int* ttcIndex) const; |
| + |
| protected: |
| /** uniqueID must be unique and non-zero |
| */ |