1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Added more finer characters as proposed by cketti

This commit is contained in:
Stephan Fuhrmann 2013-07-24 00:32:27 +02:00
parent df5766ba3a
commit 6af02c4c13

View File

@ -166,8 +166,7 @@ public class ContactPictureLoader {
paint.setAntiAlias(true); paint.setAntiAlias(true);
paint.setStyle(Paint.Style.FILL); paint.setStyle(Paint.Style.FILL);
paint.setARGB(255, 255, 255, 255); paint.setARGB(255, 255, 255, 255);
paint.setFakeBoldText(true); paint.setTextSize(mPictureSizeInPx * 3 / 4); // just scale this down a bit
paint.setTextSize(mPictureSizeInPx);
Rect rect = new Rect(); Rect rect = new Rect();
paint.getTextBounds(letter, 0, 1, rect); paint.getTextBounds(letter, 0, 1, rect);
float width = paint.measureText(letter); float width = paint.measureText(letter);