aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-29 18:54:08 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-29 18:54:08 +0000
commit08df48d2411b33a9078f1621894d630f0b11cd60 (patch)
tree3df950ac8fddc562c919b0bbbb025bb37abbaa3f /src/core
parente8232bc6f0719f381d437483271ce3c78af3c819 (diff)
expose getFamilyName to public SkTypeface
git-svn-id: http://skia.googlecode.com/svn/trunk@10418 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkTypeface.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp
index 294323841c..bea7985097 100644
--- a/src/core/SkTypeface.cpp
+++ b/src/core/SkTypeface.cpp
@@ -195,6 +195,13 @@ int SkTypeface::getUnitsPerEm() const {
return this->onGetUPEM();
}
+void SkTypeface::getFamilyName(SkString* name) const {
+ bool isLocal = false;
+ SkFontDescriptor desc(this->style());
+ this->onGetFontDescriptor(&desc, &isLocal);
+ name->set(desc.getFamilyName());
+}
+
SkAdvancedTypefaceMetrics* SkTypeface::getAdvancedTypefaceMetrics(
SkAdvancedTypefaceMetrics::PerGlyphInfo info,
const uint32_t* glyphIDs,