willowtreeapps/Hyperion-Android

Handle Typeface for Attribute Inspector

Open

#53 aperta il 3 apr 2018

Vedi su GitHub
 (0 commenti) (2 reazioni) (0 assegnatari)Java (138 fork)batch import
help wanted

Metriche repository

Star
 (1877 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

The Attribute Inspector does not handle displaying the Typeface of a TextView very well. Ideally, the property would be displayed as Typeface Roboto-Bold with the right-aligned value text styled with the Typeface. This is made a bit complex because the Typeface class doesn't contain methods for querying the name. A possible implementation could read from assets until it finds a font file whose Typeface == the TextView's Typeface, and we can use the name of the file as the value.

Guida contributor