Bootstrap 3.0.3 glyphicons displaying emoticons on

2019-02-16 10:27发布

I use Bootstrap 3.0.3 glyphicons. All is ok on desktop browsers and on Android devices. My problem is about Apple devices (tested on iPhone and iPad running iOS7).

The glyphicons look like emoticons. I've found some issues but not answering my problem.

Here is the link to view the screenshot : http://www.fredericblancheton.fr/imgdisallow/image.png

Thank you for your help.

5条回答
何必那么认真
2楼-- · 2019-02-16 11:07

I had a similar problem, but only when another font was included via font-face inside the stylesheet. It seems that mobile safari or safari in general has a very short timeout for loading fonts which are included via font-face syntax.

I had to remove the font from the main stylesheet and add the font-face syntax directly in the sites header using <style></style> syntax. Weird.

Another approach is illustrated over at filamentgroup, which are using the Data-URI syntax for the font and loading these asynchronously via javascript. This should also trick the browser to wait longer. -> http://www.filamentgroup.com/lab/font-loading.html

查看更多
一纸荒年 Trace。
3楼-- · 2019-02-16 11:16

I started getting this error today using Pulsar for Salesforce, I turned out that my FE DEV had included references to Fonts and forgotten to update the static resources with the new fonts! In case that helps someone.

查看更多
虎瘦雄心在
4楼-- · 2019-02-16 11:17

I just tried the solutions above and none of them worked for me. It turned out that:

  1. I had updated bootstrap to 3.3.6 css
  2. I didn't update the font files that came with it

Getting the latest version of the font files fixed my issue with the unwanted emojis.

查看更多
干净又极端
5楼-- · 2019-02-16 11:28

We've seen the same problem in our app - it's totally bizarre. It happens when the user has installed an old Emoji app ("Emoji Free!", which I can no longer find in the app store).

The only solution was to get the user to uninstall the app.

查看更多
【Aperson】
6楼-- · 2019-02-16 11:28

I encountered same issue and resolved it by removing woff2 font file from @font-face. It seems iOS doesn't support woff2.

[Updated 2016-03-02] Fix above turns out just matter of luck (timing?). @rofflox 's answer which seems to be more promising and it works for me.

查看更多
登录 后发表回答