Mohit Gaur
Mohit Gaur

Reputation: 355

Custom fonts (*.ttf)

I have included a ttf file in my android assets folder.
I am using day poster as ttf.
But the problem is that this custom font is not being supported in some phones i.e.: it appears different in some phones.

The same issue is with bebas.ttf.

Please tell me how can I sort it out so that it appears the same in all mobile phones.

Output in Micromax(See text PETO)

Output in Micromax(See text PETO)

Output in Samsung(See text PETO)

Output in Samsung mobile(See text PETO)

Upvotes: 1

Views: 325

Answers (1)

Umesh Singh Kushwaha
Umesh Singh Kushwaha

Reputation: 5741

try this, add paint flags

setPaintFlags(getPaintFlags() | Paint.SUBPIXEL_TEXT_FLAG);

Upvotes: 1

Related Questions