Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for android:fontFamily #92

Open
ShaishavGandhi opened this issue Mar 17, 2018 · 3 comments
Open

Support for android:fontFamily #92

ShaishavGandhi opened this issue Mar 17, 2018 · 3 comments

Comments

@ShaishavGandhi
Copy link

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!

@jinatonic
Copy link
Contributor

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.

@ShaishavGandhi
Copy link
Author

Awesome! Will do

@bungabear
Copy link

You can use your font.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants