Implement getFamilyName for stream fonts on Linux.
authorBen Wagner <bungeman@google.com>
Wed, 25 Jan 2017 16:15:50 +0000 (11:15 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 26 Jan 2017 22:21:34 +0000 (22:21 +0000)
commit25272300c308335f2d87c2a70e249965b268bcb0
treedb2d539a1b22e9db81918a40e6a05a9da47bea31
parentbbeb5730e7365d0952d3dbb5846001708b9517a3
Implement getFamilyName for stream fonts on Linux.

When SkFontMgr_fontconfig and SkFontMgr_FontConfigInterface create a
typeface from data they do not store the default font name and
getFamilyName will return the empty string. All of the code to handle
this properly now exists, it just needs to be hooked up.

BUG=skia:1508

Change-Id: I75f2a598a5451babb4a9ceb5e9a9e9d3daa41d60
Reviewed-on: https://skia-review.googlesource.com/7506
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
src/ports/SkFontConfigTypeface.h
src/ports/SkFontMgr_FontConfigInterface.cpp
src/ports/SkFontMgr_fontconfig.cpp