:text-size trait uses the wrong scale
Closed this issue · 1 comments
Deleted user commented
The text-size trait uses the setTextSize (float size)
method, which according to the API docs takes a size in scaled pixels, that is :sp
However the trait applies to-dimension
, which yields px, resulting in overall larger text than intended.
Proposed Fix: Use setTextSize (int unit, float size)
directly, skipping the manual conversion.
alexander-yakushev commented
OK, I've pushed a fix following your advise. Thank you!