Chrome中的矩形而不是空格 [英] Rectangles instead of whitespace in Chrome

查看:220
本文介绍了Chrome中的矩形而不是空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用的网站是使用自定义嵌入字体,Windows的较新版本的Chrome似乎不喜欢。而不是空白,奇怪的白色矩形出现。删除自定义字体解决了问题,但这是一个不可接受的解决方案。

A website I'm working on is using a custom embedded font that newer versions of Chrome on Windows don't seem to like. Instead of whitespace, weird white rectangles show up. Removing the custom typeface fixes the problem but that's hardly an acceptable solution.

屏幕截图:

有人知道Chrome如何解释空格,以便我可以修复字体?

Does anyone know how Chrome interprets whitespace so that I can fix the typeface?

推荐答案

p>导出字体没有定义Unicode空白字符(0020)。除了Chrome之外,所有其他浏览器都将空白字符替换为空格。通过编辑字体并添加字符来修复。

Turns out the typeface didn't define the Unicode whitespace character (0020). All the other browsers substituted the missing character for whitespace, except Chrome. Fixed by editing the font and adding the character.

这篇关于Chrome中的矩形而不是空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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