שינוי הגופן החירום וגופן בסגנון
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"; | |
} | |
} |