Eimantas
Eimantas

Reputation: 49354

Drawing scaled emoji icons on iOS

I'm trying to implement my own emoji icon keyboard and have some problems. I'm trying to draw emoji icons at the same size as on native iOS emoji keyboard, but when doing simple drawing (standard unicode characters like "\ue415") icons always appear at original size. When trying to increase the font - emoji icons stay of the same size. When applying CGAffineTransform for scaling - drawn icons are bigger, but pixelated and blurred. How should I go about drawing emoji icons bigger, but sharper?

Upvotes: 2

Views: 5130

Answers (3)

Nemochen
Nemochen

Reputation: 61

ei, You can set the font to scaled the emoji icon like this:

label.font = [UIFont fontWithName:@"AppleColorEmoji" size:16.0];

Upvotes: 6

Steve E
Steve E

Reputation: 772

In iOS 5, the png files are gone because they have moved to the same font used in OSX Lion. It's called Apple Color Emoji.

Upvotes: 3

Alexandru Halmagean
Alexandru Halmagean

Reputation: 68

The emoji icons are stored as PNG files in /System/Library/PrivateFrameworks/WebCore.framework (I found this info on the net, but I can't confirm since I don't own a jailbroken iPhone). I don't think it is possible to scale them without loosing quality.

Upvotes: 3

Related Questions