diff options
author | Seigo Nonaka <nona@google.com> | 2018-10-25 13:12:03 -0700 |
---|---|---|
committer | Seigo Nonaka <nona@google.com> | 2018-10-30 12:18:12 -0700 |
commit | ee4b6d85dcc11bba2aaeea4811ba490c4c7e7028 (patch) | |
tree | 4cc12da12db1ae5de367a7b012919b3b786088f8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 6b82d83d6ba1753eb38b5f885379a6893e49734d (diff) |
Refactor Typeface construction logic
API refactoring:
- Replace Font.getWeight()/getSlant() with Font.getStyle().
- Change Typeface.CustomFallbackBuilder.setItalic() to setSlant()
Implementation refactoring:
- Add hidden builder API for asset manager with cookie. The cookie is
internal, so hide the API as well.
- Replace createFromResources with Typeface.Builder
- Reimplement Typeface.Builder with Typeface.CustomFallbackBuilder
Ground work for b/114479228
- Keep list of FontFamily in the Typeface.
Bug: 114479228
Test: atest CtsTestCases
Test: atest CtsGraphicsTestCases
Test: atest CtsWidgetTestCases
Change-Id: Ifaaa58ddea147644a93158aa075394c2f645617c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions