chrisjenx / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
8.59k stars 1.09k forks source link

Doesn't work with TextClock #406

Closed thanhbinh84 closed 5 years ago

thanhbinh84 commented 7 years ago

<android.widget.TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format24Hour="kk:mm" android:textSize="50sp" fontPath="fonts/font.otf" /> -> doesn't work have to set by code mTimeTextView.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "fonts/font.otf"));

chrisjenx commented 5 years ago

TextClock probably doesn't extend TextView? Also don't use otf use ttf if you can.