表情符号在 IOS 7 上不会超过 16px 字体大小 [英] Emojis won't scale beyond 16px font-size on IOS 7

查看:48
本文介绍了表情符号在 IOS 7 上不会超过 16px 字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 UIWebView 中的网页在 phonegap 中制作应用程序,并且在该产品中,我们允许使用 Apple 的表情符号,我们将 AppleColorEmoji 字体应用于该表情符号,从而可以对其进行缩放.

We're making an app in phonegap using web-pages in the UIWebView, and in this product we allow apple's emojis, which we apply the AppleColorEmoji font to, making it possible to scale them.

在 iPad 和 iPhone 上更新到 IOS 7 后,带有 AppleColorEmoji 字体的表情符号以前允许缩放到任何想要的大小,不再超过 16px 字体大小(它可以缩放更小).它仍然按预期在具有 IOS <7

After updating to IOS 7 on both iPad and iPhone, the emoji with font AppleColorEmoji that previously allowed for scaling to whichever size wanted, no longer scales beyond 16px font-size (it can scale smaller). It still scales as intended on the devices with IOS <7

我担心这是他们在 IOS 7 中故意引入的.有没有其他人遇到过这个问题,甚至可能有解决方案?

I fear this is something they introduced in IOS 7 intentionally. Have anyone else experienced this problem, and perhaps even a solution to it?

推荐答案

如果这对任何人来说仍然很有趣(我忘了这仍然是开放的)那么解决方案"是将 iPhone 的元标记设置为:

If this is still interesting for anyone (I forgot that this was still open) then the "solution" was to set the meta tag for iPhones to:

<meta name="viewport" content="width=320"/>

这可确保 iPhone 将内容放大到适合屏幕的 640 像素(或更多),并且 16 像素大小的表情符号现在将是两倍大.但是,这只会将它们扩展到合理的大小.对于想要完全控制字体大小的人来说,它仍然没有解决.

This ensures that the iPhone scales the content up to fit the 640 pixels (or more) the screen has, and the emojis with 16px size will now be twice as big. However, this will only scale them up to a reasonable size. It still doesn't fix it for the people wanting to control the font-size completely.

这篇关于表情符号在 IOS 7 上不会超过 16px 字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆