CAD 字体
3 个节点
本页内容 3
从数据加载
函数Snapshots font bytes, including the selected face of a collection. Later changes to the input array cannot alter the font.
签名
从数据加载(数据: 字节数组, 字体索引: 整数) -> Cad Font
CadFont FromData(byte[] data, int faceIndex = 0)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数据 | 字节数组 | — | |
| 字体索引 | 整数 | 0 |
返回
| 结果 | Cad Font |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- CAD 字体
- 所属包
- 计算机辅助设计
读取字体文件
函数Reads and snapshots an outline font file. Subsequent file edits do not affect this value.
签名
读取字体文件(路径: 文本, 字体索引: 整数) -> Cad Font
CadFont ReadFile(string path, int faceIndex = 0)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 路径 | 文本 | — | |
| 字体索引 | 整数 | 0 |
返回
| 结果 | Cad Font |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- CAD 字体
- 所属包
- 计算机辅助设计
系统字体
函数Snapshots an installed font family, choosing its closest regular face. Missing families fail explicitly; use ReadFile for reproducible cross-machine font selection.
签名
系统字体(字体族: 文本) -> Cad Font
CadFont SystemFont(string family)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 字体族 | 文本 | — |
返回
| 结果 | Cad Font |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- CAD 字体
- 所属包
- 计算机辅助设计