diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-07 21:06:55 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-07 21:06:55 +0000 |
commit | 0389d93314ed8f706ba7adc4969110712b67416b (patch) | |
tree | a162ad936c5c2d87548cbacc02577d9f00fee729 /include | |
parent | 15fa138f2276a77679530fb608463ff5b4133f7b (diff) | |
download | skia-0389d93314ed8f706ba7adc4969110712b67416b.tar.gz |
remove unused ptr/len parameters from CreateTypeface
Review URL: https://codereview.appspot.com/6201056
git-svn-id: http://skia.googlecode.com/svn/trunk@3862 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkFontHost.h | 4 | ||||
-rw-r--r-- | include/core/SkTypeface.h | 12 |
2 files changed, 1 insertions, 15 deletions
diff --git a/include/core/SkFontHost.h b/include/core/SkFontHost.h index 7015ee9921..732de5c3c7 100644 --- a/include/core/SkFontHost.h +++ b/include/core/SkFontHost.h @@ -50,15 +50,13 @@ class SK_API SkFontHost { public: /** Return a new, closest matching typeface given either an existing family (specified by a typeface in that family) or by a familyName and a - requested style, or by a set of Unicode codepoitns to cover in a given - style. + requested style. 1) If familyFace is null, use familyName. 2) If familyName is null, use data (UTF-16 to cover). 3) If all are null, return the default font that best matches style */ static SkTypeface* CreateTypeface(const SkTypeface* familyFace, const char familyName[], - const void* data, size_t bytelength, SkTypeface::Style style); /** Return a new typeface given the data buffer. If the data does not diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index 0476f780a5..bfa7d839ea 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -85,18 +85,6 @@ public: */ static SkTypeface* CreateFromName(const char familyName[], Style style); - /** Return a new reference to the typeface that covers a set of Unicode - code points with the specified Style. Use this call if you want to - pick any font that covers a given string of text. - - @param data UTF-16 characters - @param bytelength length of data, in bytes - @return reference to the closest-matching typeface. Call must call - unref() when they are done. - */ - static SkTypeface* CreateForChars(const void* data, size_t bytelength, - Style s); - /** Return a new reference to the typeface that most closely matches the requested typeface and specified Style. Use this call if you want to pick a new style from the same family of the existing typeface. |