OSDN Git Service

Update Typeface.Builder API to reflect API feedback.
authorSeigo Nonaka <nona@google.com>
Tue, 11 Apr 2017 17:40:55 +0000 (10:40 -0700)
committerSeigo Nonaka <nona@google.com>
Wed, 12 Apr 2017 14:12:41 +0000 (07:12 -0700)
commit5421e810233ecadf0ebc7d7760dc9ac07a141e6c
treef7ad7542f603c097a9a7267f5ed3a6996f26c95d
parent1f58ad1a2f1a88fb154297080e2b97bbf47f4aa4
Update Typeface.Builder API to reflect API feedback.

- Stop pooling and remove reset method.
- Introduce overloaded constructors instead of setSource methods.
- Make italic parameter boolean and treat "not called" as
  RESOLVE_BY_FONT_TABLE.
- Remove constants and move them to Typeface with private static
  constant.
- Fix JavaDoc.

Bug: 37082657
Test: android.graphics.cts.TypefaceTest passed
Change-Id: I0c50cf3e2d50c0021f7e12bbb7ed7ae89fa1c2a1
api/current.txt
api/system-current.txt
api/test-current.txt
graphics/java/android/graphics/Typeface.java
tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java