mathew-kurian/TextJustify-Android

Quality and space issue

Opened this issue · 9 comments

Maybe you can have a quick look on this: http://stackoverflow.com/questions/36626526/textjustify-quality-issue
This is very annoying

The library also cuts off some characters at the end? Why??

I will be addressing these concerns over the next few days. I will keep you posted.

As for the quality, you need to enable antialiasing and subpixel text.

layoutParams.setAntialias(true);
layoutParams.setSubpixelText(true);

Thank you!
Would it be possible to make links clickable?

New informations? Error still exists and is anoying :)

Try this version

dependencies {
    compile 'com.github.bluejamesbond:textjustify-android:2.1.6'
}

Yop, I used that version. Same problem with the big space between characters

Can you share the minimum code that replicates this issue?

            DocumentView documentView = new DocumentView(context, DocumentView.FORMATTED_TEXT);
            documentView.getDocumentLayoutParams().setTextAlignment(TextAlignment.JUSTIFIED);
            documentView.setText("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit \n" +
                    "amet.");

Any new infos?

Hi Bluejames any updates on this issue?