ticker icon indicating copy to clipboard operation
ticker copied to clipboard

Support for android:fontFamily

Open ShaishavGandhi opened this issue 6 years ago • 3 comments

I mainly use the setTypeface() method as was pointed out in a previous closed issue. With downloadable fonts getting great support, it would be great if we can add a font attribute to TickerView.

Something like : android:fontFamily="@font/lato

It would probably mean that there would be a dependency on the support library but that could be fine since almost all developers use the support library anyway.

Would be happy to take a stab at it!

ShaishavGandhi avatar Mar 17 '18 17:03 ShaishavGandhi

Great suggestion, and would love to see a PR for it if you want to take a stab! Otherwise it'll be on my back burner once I get more free time from work.

jinatonic avatar Apr 05 '18 21:04 jinatonic

Awesome! Will do

ShaishavGandhi avatar Apr 05 '18 22:04 ShaishavGandhi

You can use your font.

Typeface fontFace = ResourcesCompat.getFont(this, R.font.nanumpen);
yourTicker.setTypeface(fontFace);

bungabear avatar Jun 19 '19 11:06 bungabear