diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-03-04 15:31:48 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-03-04 15:31:48 +0000 |
commit | 069b827f8e4f8ca212548719db64983a69b8dc25 (patch) | |
tree | e989bf8ab7936e526b97d6893d62b14daaea00e9 /include/core | |
parent | 0650c6ca12e026201091f3e9ea9cbf0fed2b6da1 (diff) |
API cleanup: rename typeface Create to CreateFromName, and remove default arg
git-svn-id: http://skia.googlecode.com/svn/trunk@108 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkTypeface.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index 72a0af1036..b25aeea8ed 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -29,8 +29,7 @@ class SkWStream; textSize, textSkewX, textScaleX, kFakeBoldText_Mask, to specify how text appears when drawn (and measured). - Typeface objects are immutable, and so they can be shred between threads. - To enable this, Typeface inherits from the thread-safe version of SkRefCnt. + Typeface objects are immutable, and so they can be shared between threads. */ class SkTypeface : public SkRefCnt { public: @@ -48,9 +47,6 @@ public: /** Returns the typeface's intrinsic style attributes */ Style style() const { return fStyle; } - - /** DEPRECATED */ - Style getStyle() const { return this->style(); } /** Returns true if getStyle() has the kBold bit set. */ @@ -84,7 +80,7 @@ public: @return reference to the closest-matching typeface. Call must call unref() when they are done. */ - static SkTypeface* Create(const char familyName[], Style style = kNormal); + static SkTypeface* CreateFromName(const char familyName[], Style style); /** Return a new reference to the typeface that most closely matches the requested typeface and specified Style. Use this call if you want to |