Reputation: 39
I downloaded a .ttf file for the font and saved it in font Resource folder of my application. Now I see garbage fonts and symbols rather than text in my android studio layout preview. Here is the screenshot screenshot. While I run the app, everything works fine and the output texts are in english language as I desired. But the problem seems to be in android studio layout preview. I tired rebuilding and cleaning my project but doesn't seem to work.
Upvotes: 1
Views: 1259
Reputation: 1973
Please go to File from menu and click Invalidate Caches / Restart .
File>Invalidate Caches / Restart and select invalidate and restart
Upvotes: 2
Reputation: 194
Try downloading alternative .ttf file and include in your project. Follow the instructions in https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml developer link working perfectly.
Upvotes: 1