diff options
| author | 2025-02-05 11:19:05 +0800 | |
|---|---|---|
| committer | 2025-02-12 14:11:59 +0800 | |
| commit | 1beb283077b3463397a2da82784e42257e54f5d1 (patch) | |
| tree | 0804a23dbfc6754c2156cd10fce4c4c99f65a157 /libs/androidfw/FileStream.cpp | |
| parent | 107fe807c3ee6265ea430f2a0ffe0b1f125d147a (diff) | |
fix(HCT): text not being centered within the background
The root cause is that line breaks with trailing spaces create extra blank areas. We need a pre-emptive check for spaces; if a space is found, its background should not be rendered. Spaces in the middle of a line will have the background drawn along with the subsequent text, while spaces at the end of a line, the line will have a rectangle drawn using the onEnd method.
Bug: 394118810
Flag: com.android.graphics.hwui.flags.high_contrast_text_small_text_rect
Test: atest core/tests/coretests/src/android/text/LayoutTest.java
Change-Id: Ibf805b5e6681963f17a4df66853f83f8219c1302
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions