aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkTypeface.h
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2014-09-17 07:48:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-17 07:48:59 -0700
commitb374d6a62c0259387d90cad74753d8bad9ee1bea (patch)
treefd558326c3254d6be22818cab97f18e3223669c2 /include/core/SkTypeface.h
parent3850971d54b2e07cbf69e282d1455ea1dc3333b6 (diff)
Add onGetFamilyName to SkTypeface.
This speeds up and documents this particular feature of SkTypeface and also frees up SkFontDescriptor to be used only in serialization. R=reed@google.com Author: bungeman@google.com Review URL: https://codereview.chromium.org/574873002
Diffstat (limited to 'include/core/SkTypeface.h')
-rw-r--r--include/core/SkTypeface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index 0b1c1f24ac..1df467a0e5 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -312,6 +312,12 @@ protected:
virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count,
int32_t adjustments[]) const;
+ /** Returns the family name of the typeface as known by its font manager.
+ * This name may or may not be produced by the family name iterator.
+ */
+ virtual void onGetFamilyName(SkString* familyName) const = 0;
+
+ /** Returns an iterator over the family names in the font. */
virtual LocalizedStrings* onCreateFamilyNameIterator() const = 0;
virtual int onGetTableTags(SkFontTableTag tags[]) const = 0;