mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 370 forks source link

default Typeface should be Roboto #90

Closed ciscorucinski closed 9 years ago

ciscorucinski commented 9 years ago

I have just used this library and just simply justified plain text, and noticed that the font used by this library is not the standard typeface. If you look close, the text is jagged, and does not look like the other Roboto text in my app

ciscorucinski commented 9 years ago

Also, is there no way to programmatically set the Typeface? The wiki is apparently out-of-date, and the .setTypeface method does not exist

mathew-kurian commented 9 years ago

Refer to this: https://github.com/bluejamesbond/TextJustify-Android/blob/6dc6b9297d3a5a97dc4422d5405c3430b6353593/sample/src/main/java/com/bluejamesbond/text/sample/helper/TestActivity.java#L71

I am a bit busy these days but I will gladly accept a PR if you want to update the docs.

ciscorucinski commented 9 years ago

Do you also allow for antialiasing?

Test:

You will see that the DocumentView has jagged Text, but the TextView is smooth. This is the case even when the same font is used.

ciscorucinski commented 9 years ago

Top black text is the Document view Bottom greyish text is Text view.

screenshot_2015-08-10-05-22-16

ciscorucinski commented 9 years ago

found it. Things are good now with this issue