Emojis不会超过16px font-size在IOS 7 [英] Emojis won't scale beyond 16px font-size on IOS 7

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

问题描述

我们正在使用UIWebView中的网页在phonegap中创建一个应用程序,在这个产品中,我们允许使用AppleColorEmoji字体的Apple's emojis,以便缩放它们。

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像素,而16px大小的emojis现在将是两倍大。然而,这只会将它们扩展到合理的大小。它仍然不能解决它想要完全控制字体大小的人。

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.

这篇关于Emojis不会超过16px font-size在IOS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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