Pet*_*ter 5 android text antialiasing
我正在尝试调整android中的文本大小以使其更大;
Paint paint = new Paint();
paint.setTextSize(30);
canvas.drawText("Text goes here" , x, y,paint);
Run Code Online (Sandbox Code Playgroud)
然而,文本变得像素化.
有没有其他方法可以在android中调整文本大小而不是丑陋和像素化?
ant*_*nyt 10
你试过Paint.setAntiAlias(true)开启抗锯齿吗?Paint.setSubpixelText(true)也许会有所帮助.
http://developer.android.com/reference/android/graphics/Paint.html
| 归档时间: |
|
| 查看次数: |
1058 次 |
| 最近记录: |