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

How to change the font for sneaker? #13

Closed
karanthakakr04 opened this issue Jul 13, 2017 · 1 comment
Closed

How to change the font for sneaker? #13

karanthakakr04 opened this issue Jul 13, 2017 · 1 comment

Comments

@karanthakakr04
Copy link

Firstly, thank you for this beautiful library.

My doubt here is how do I change the font of text inside sneaker? I know you have provided us with a snippet of code in which there's this line:
.setTypeface(Typeface.createFromAsset(this.getAssets(), "font/" + fontName)); // Custom font for title and message
When I use this as it is in my project it gives me an error atfontName. What do I have to do in order to change the font or use this snippet provided by you?
Could you please post an example providing more clarity on this subject?
Any help would be appreciated.

@Hamadakram
Copy link
Owner

fontName is the name of the font that you want to use. You have to add your font .ttf file to Assets/font folder in order to use it. For example you added Roboto.ttf font, your font name will be Roboto.ttf.

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

2 participants