How do I set a custom font for UI customization? Or I am having an error while setting a custom font? Or the font that I set is not the one I see
- You should verify the following:
- Copy your .ttf file to “font” folder under “assets” in the main directory
- If you don’t already have an assets file, right click on the main directory | New | Android Resource Directory
- Directory name: assets
- Directory type: assets
- Source Set: main
- Once the directory is created, right-click | New | Android Resource Directory |
- Directory name: font
- Directory Type: font
- Source Set: main
- Once you have verified you have your font in the right place, Pass in font name as “font/font_name.ttf”
- eg. button customization.setTextFontName(“font/walkwayblack.ttf”);