diff options
| author | 2021-12-10 10:49:43 -0800 | |
|---|---|---|
| committer | 2022-01-12 00:00:53 -0800 | |
| commit | 78c774defb238c05c42b34a12b6b3b0c64844ed7 (patch) | |
| tree | 9359a8bed99b912964a3b37ad9d7a4bf0d5743d8 /api/api.go | |
| parent | 0d5215b36a81d66fc3fc32e9091084cb654f68be (diff) | |
Implement fallback line spacing for BoringLayout
The fallback line spacing is a feature of extending the line height
when the fallback font has taller glyph. This was implemented to
StaticLayout in Android P but not yet implemented in BoringLayout.
This CL enables this feature to the BoringLayout as well.
Not to break existing apps, change this behavior only if the
targetSdk version is T or later.
This is a 2nd attempt of Ia6d6f9f44e73ddaf5e8fe9a8aead7a53efbddd44
The root cause of SystemUI crash was wrong API usage. (start, end) was
passed instead of (start, count).
Bug: 210923482
Test: atest FallbackLineSpacingTest BoringLayoutFallbackLineSpacingTest
Test: atest CtsGraphicsTestCases
Test: atest CtsTextTestCases
Test: atest SystemUITests
Change-Id: I9137607b0120934f7ad2a12c0f0b8aaa52915831
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions