緊急フォントとスタイルのフォントの変更
Contents
[
Hide
]緊急フォントとスタイルのフォントの変更方法
問題: 緊急フォントとスタイルのフォントの変更方法 (CADNET-1060)。
ヒント: これを行うには、図面のDefaultFontフィールドを使用します。
例:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (CadImage cadImage = (CadImage)Image.Load(fileName)) | |
{ | |
cadImage.DefaultFont = "Microsoft JhengHei UI"; | |
} | |
AND/OR | |
using (CadImage cadImage = (CadImage)Image.Load(fileName)) | |
{ | |
foreach (CadStyleTableObject style in cadImage.Styles) | |
{ | |
style.PrimaryFontName = "Microsoft JhengHei UI"; | |
} | |
} |