Custom font in canvas text
suggest changeDrawing text in canvas with your font from assets.
Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/SomeFont.ttf"); Paint textPaint = new Paint(); textPaint.setTypeface(typeface); canvas.drawText("Your text here", x, y, textPaint);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents