I want to draw a text to a paint. How to draw it with a custom font (ex Helvetica ) and bold also? I would preffer to use a system font and not create it fr
If you want to use a font from resources (Kotlin):
val textPaint = TextPaint() textPaint.typeface = resources.getFont(R.font.font_name)
This might not be related to the question, but this is what I was looking for - maybe somebody would need it too.