clojure-android/neko

:text-size trait uses the wrong scale

Closed this issue · 1 comments

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.

OK, I've pushed a fix following your advise. Thank you!