元編程參考文件

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 字型
所屬包
電腦輔助設計