Which unit of measurement does the Paint.setTextSize(float) use?

Viewed 10269

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?

3 Answers
Related