内置 WPF 字体列表

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6993736/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 23:01:47  来源:igfitidea点击:

List of Built-in WPF Fonts

wpffontsfont-family

提问by Gergely Orosz

I'm looking for the list of "safe" font families to use in a WPF application - font families that should be installed on all clients machines capable of running WPF. Silverlight has a well defined list of such (listed on MSDNit comes with 25 fonts such as Arial, Arial Black, Calibri etc).

我正在寻找在 WPF 应用程序中使用的“安全”字体系列列表 - 应该安装在所有能够运行 WPF 的客户端机器上的字体系列。Silverlight 有一个明确定义的列表(在 MSDN 上列出它带有 25 种字体,例如 Arial、Arial Black、Calibri 等)。

Is there such a list for WPF or will I have to embed custom fonts to make sure all users of the application will see the same font type?

是否有这样的 WPF 列表,还是我必须嵌入自定义字体以确保应用程序的所有用户都能看到相同的字体类型?

采纳答案by Gergely Orosz

You can find a list of all fonts that ship with any given Microsoft product on the MS Typography website ("Fonts by Product"):

您可以在 MS Typography 网站上找到任何给定 Microsoft 产品附带的所有字体的列表(“按产品划分的字体”):

http://www.microsoft.com/typography/fonts/

http://www.microsoft.com/typography/fonts/

WPF 4 requires at least Windows XP SP3 with IE 5.01, so the fonts you can count on are the following:

WPF 4 至少需要 Windows XP SP3 和 IE 5.01,因此您可以信赖的字体如下:

 - Aharoni
 - Andalus
 - AngsanaUPC
 - Angsana New
 - Arabic Transparent
 - Arial
 - Arial Black
 - Batang
 - BrowalliaUPC
 - Browallia New
 - Comic Sans MS
 - CordiaUPC
 - Cordia New
 - Courier New
 - David
 - DFKai-SB
 - DilleniaUPC
 - Estrangelo Edessa
 - EucrosiaUPC
 - Fixed Miriam Transparent
 - Franklin Gothic
 - FrankRuehl
 - FreesiaUPC
 - Gautami
 - Georgia
 - Gulim
 - Impact
 - IrisUPC
 - JasmineUPC
 - KaiTi
 - Kartika
 - KodchiangUPC
 - Latha
 - Levenim MT
 - LilyUPC
 - Lucida Console
 - Lucida Sans
 - Lucida Sans Unicode
 - Mangal
 - Marlett
 - Microsoft Sans Serif
 - PMingLiU
 - Miriam
 - Miriam Fixed
 - MS Gothic
 - MS Mincho
 - MV Boli
 - Narkisim
 - Palatino Linotype
 - PMingLiU-ExtB
 - Raavi
 - Rod
 - Shruti
 - SimHei
 - Simplified Arabic Fixed
 - Simplified Arabic Fixed
 - SimSun-ExtB
 - Sylfaen
 - Symbol
 - Tahoma
 - Times New Roman
 - Traditional Arabic
 - Trebuchet MS
 - Tunga
 - Verdana
 - Vrinda
 - Webdings
 - Wingdings

(based on filtering this list)

(基于过滤此列表

However, these pages note that some fonts might not be installed. I think Asian scripts are generally not installed unless needed -- perhaps someone else knows the details here?

但是,这些页面指出可能未安装某些字体。我认为除非需要,否则通常不会安装亚洲脚本——也许其他人知道这里的细节?

回答by MAXE

As @Chris says, the updated reference link of Microsoft Fonts and supported productsis this: https://docs.microsoft.com/en-us/typography/font-list/index

正如@Chris 所说,微软字体和支持产品的更新参考链接是这样的:https: //docs.microsoft.com/en-us/typography/font-list/index

Your choice should be based on your target framework version, I'm not sure you can find a 100% safe font...

您的选择应该基于您的目标框架版本,我不确定您是否可以找到 100% 安全的字体...