用什么字体,如果一个Unicode字符未在选定字体(宋体)发现了什么? [英] What font is used if a Unicode-character is not found in the selected font (Tahoma)?

查看:399
本文介绍了用什么字体,如果一个Unicode字符未在选定字体(宋体)发现了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了使用宋体作为字体显示unicode字符串,其工作罚款WPF用户控件。不过,我已经注意到,一些东亚字符实际上是缺少宋体,即该字体不支持所有常见的Unicode字符。

I have written a WPF user control that uses Tahoma as a font to display unicode strings, which works fine. However, I have noticed that some eastern asian characters are actually missing in Tahoma, i.e. this font does not support all common Unicode characters.

然而,当我显示的字符串包含一些东亚的信件,我料想在Tahoma.ttf丢失,字符显示正常,无论如何,而不是一个黑色的矩形,我有望获得失踪的Unicode字符。

However, when I display a string that contains some east asian letters, that I suppose are missing in Tahoma.ttf, the character is displayed correctly anyway, instead of a black rectangle that I expected to get for the missing unicode character.

于是出于好奇:有没有回退机制,IE浏览器的Windows 7或C#WPF从后备字体替换缺少的人物?任何人都可以请解释一下这是如何准确地工作,和字体实际用作allback?

So out of curiosity: is there any fallback mechanism, i.e. does Windows 7 or C# WPF replace the missing characters from a fallback font? Can anybody please explain how exactly this is working, and which font is actually used as a allback?

推荐答案

查看字体回退中的 的FontFamily 引用

See the Font Fallback section of the FontFamily reference.

这篇关于用什么字体,如果一个Unicode字符未在选定字体(宋体)发现了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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