Fix append_fallback_font_families_for_locale.
authorbungeman <bungeman@google.com>
Wed, 11 Feb 2015 15:18:51 +0000 (07:18 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Feb 2015 15:18:51 +0000 (07:18 -0800)
commitc3c694342ad393b88cee5885395f182082aa2ebb
treef1c6cd5128c1596ac15b4b9eb8c2e524706236c8
parent02b05015b55d1900a9e34039942101da189053ce
Fix append_fallback_font_families_for_locale.

The language was being set to garbage, now set to part of the file name.
Add a test to ensure we continue to parse fallback directories correctly.

BUG=chromium:422180

Review URL: https://codereview.chromium.org/912053003
include/core/SkTemplates.h
resources/android_fonts/v17/fallback_fonts-ja.xml [new file with mode: 0644]
src/ports/SkFontConfigParser_android.cpp
src/ports/SkFontConfigParser_android.h
tests/FontConfigParser.cpp