是否有“未找到字形"?特点? [英] Is there a "glyph not found" character?

查看:32
本文介绍了是否有“未找到字形"?特点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我们有一个文本,其中包含无法显示的 Unicode 字符,因为我们的字体没有相应的字形.通常,会显示占位符,例如一个矩形块(见截图).

Let's assume we have a text that contains a Unicode character that cannot be displayed because our font has no corresponding glyph. Usually, a placeholder is displayed instead, e.g. a rectangular block thingy (see screenshot).

是否有未找到字形"字符可以可靠地生成此字形?我想在 UI 中编写类似 如果以下文本包含 <insert character here> then you need another font..." 之类的内容.

Is there a "glyph not found" character that reliably produces this glyph? I'd like to write something like "If the following text contains <insert character here> then you need another font..." in a UI.

顺便说一下,我不是在谈论 (替换字符).当无法从数据流中正确解码 Unicode 字符时,将显示该字符.它不一定产生相同的字形:

By the way, I am not talking about � (replacement character). This one is displayed when a Unicode character could not be correctly decoded from a data stream. It does not necessarily produce the same glyph:

推荐答案

不,没有找不到字形"字符.不同的程序使用不同的图形表示.空的窄矩形是一种常见的渲染,但不是唯一的.它也可以是一个带有问号或字符代码的矩形,以十六进制表示.

No, there is no "glyph not found" character. Different programs use different graphic presentations. An empty narrow rectangle is a common rendering, but not the only one. It could also be a rectangle with a question mark in it or with the code number of the character, in hexadecimal, in it.

所以最好是例如显示字符的小图像以及字符本身,以便读者可以比较它们.

So it is better to e.g. display a small image of the character along with the character itself, so that the reader can compare them.

这篇关于是否有“未找到字形"?特点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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