开发者

Big text in Android

I am trying to resize text in android to make it bigger using;

Paint paint = new Paint();
paint.setTextSize(30);
canvas.drawText("Text goes here" , x, y,paint);

However the text gets pixela开发者_如何学运维ted.

Is there any other way of resizing text in android without it being ugly and pixelated?


Have you tried Paint.setAntiAlias(true) to turn on anti-aliasing? Paint.setSubpixelText(true) might also help.

http://developer.android.com/reference/android/graphics/Paint.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜