-
参见
- 函 数
- FontFamily
- FontVariations
-
- 菜单项
- Font
- ▫
- 相关指南
-
-
参见
- 函 数
- FontFamily
- FontVariations
-
- 菜单项
- Font
- ▫
- 相关指南
-
参见
DefaultFontProperties
是一个全局选项,允许覆盖指定字体系列的属性.
更多信息
- DefaultFontProperties 接受规则列表,每个规则的格式为 "family"{"prop1"val1,"prop2"val2,…}. "family" 是要配置的字体系列的名称,"propi" 是赋予该字体的属性.
- 可给出以下 "propi" 的值:
-
"FontMonospaced" 前端是否应将字体识别为内部使用的等宽字体 "FontSerifed" 前端是否应将字体识别为内部使用的衬线字体 "WolframFont" Wolfram 提供的应与该字体匹配的符号字体的名称 - "FontMonospaced" 和 "FontSerifed" 可接受 True 或 False,而 "WolframFont" 接受一个带有 Wolfram 字体系列名称的字符串,该字体应被用于数学和技术符号.
- 如果没有指定 "WolframFont",则用 "FontMonospace" 和 "FontSerifed" 来确定默认的 Wolfram 字体.
- 通常,笔记本前端会自动识别字体是等宽字体还是衬线字体,并自动选择合适的 Wolfram 字体来匹配该字体. 通常情况下,字体元数据出错或你想要自定义 Wolfram 字体设置时,可使用 DefaultFontProperties.
- 可用于 "WolframFont" 设置的字体包括:
-
"Mathematica" 成比例的衬线字体 "MathematicaMono" 等宽的衬线字体 "MathematicaSans" 成比例的无衬线字体 "Wolfram Modern" 等宽的无衬线字体 - 除了已说明的差异之外,各种 Wolfram 字体之间还存在其他风格差异. 例如,"MathematicaMono" 被设计为与 Courier 字体相对应,并且其字符的笔划往往较窄.
范例
基本范例 (2)
显示 DefaultFontProperties 的默认值:
相关指南
-
▪
- 字体选项
历史
1999年引入 (4.0) | 在以下年份被更新:2023 (13.3)
文本
Wolfram Research (1999),DefaultFontProperties,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DefaultFontProperties.html (更新于 2023 年).
CMS
Wolfram 语言. 1999. "DefaultFontProperties." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2023. https://reference.wolfram.com/language/ref/DefaultFontProperties.html.
APA
Wolfram 语言. (1999). DefaultFontProperties. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DefaultFontProperties.html 年
BibTeX
@misc{reference.wolfram_2025_defaultfontproperties, author="Wolfram Research", title="{DefaultFontProperties}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/DefaultFontProperties.html}", note=[Accessed: 12-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_defaultfontproperties, organization={Wolfram Research}, title={DefaultFontProperties}, year={2023}, url={https://reference.wolfram.com/language/ref/DefaultFontProperties.html}, note=[Accessed: 12-April-2026]}