I'm trying to use custom fonts in an android wear app, but until now no success. I can't find any specific documentation about using custom typefaces for android wear and tried to apply the same method for normal android apps.
I created a assets folder in my project by using android studio and created a folder inside it named fonts. I placed the font file in this folder.
In the
onCreate()method i added following line to load font as a typeface.mTypeface = Typeface.createFromAsset(getBaseContext().getAssets(), "fonts/fontawesome-webfont.ttf");And finally created a Paint object and set the typeface
paint.setTypeface(mTypeface);
But canvas.drawText() doesn't draw desired fonts.
My question is, is it even possible to use custom typefaces in an android wear application? If yes, how?
Thanks.