1

drawText without horizontal space

view story
linux-howto

http://stackoverflow.com – I get a little Problem drawing a Text on a Canvas. I set paint.setTextSize() to the given float textSize. Then draw the text on a Canvas : canvasdrawText(text, 0,textSize, paint). Or in Code: String text; float textSize; ... Paint paint = new Paint(); paint.setTextSize(textSize); canvas.drawText(text, 0, textSize, paint); But between the drawn text and the top edge of the display is a gap. How can I set this gap to be zero? thanks and regards (HowTos)