I want to draw text with an specific height(in pixels) on a view using Canvas. Can you simply use Paint.setTextSize(float) with the number of pixels or is this using dp or sp?
I want to draw text with an specific height(in pixels) on a view using
Share
It uses pixels, but you can convert it to dp using this code: