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 369 forks source link

can not support show a lot of chinese #30

Closed FrankLove closed 9 years ago

FrankLove commented 10 years ago

when i test many chinese ,it can not show one word my text is String myText=" 是个特别基础的控件,只要有文本基本就少不了它。但是最近在,项目开发的过程中我发现存在很多局限性,其中最令我头疼的就是文本排版方面的问题。我们都知道在中文字对齐方式有靠左、靠右、居中、分散对齐等,但是中就偏偏没有分散对齐这个属性设置。这就导致了中一段文字会出现右边参差不齐的问题,中文由于每个字等宽看起来还不是特别糟糕,英文看起来就比较过分了。"; this program can't run normal and Into the dead cycle can you help me find the progrom ,thanks this is my code TextViewEx tv=(TextViewEx)findViewById(R.id.textview1); Typeface typeface=Typeface.createFromAsset(this.getAssets(), "fzcartoon.ttf"); tv.setTypeface(typeface); tv.setText(myText,true); tv.setTextSize(30);

mathew-kurian commented 10 years ago

Can you provide me with the fonts that you use? I will resolve this issue by tomorrow.

mathew-kurian commented 9 years ago

Use the experimental version with SpannableDocumentLayout.class