Zmiana czcionki alarmowej i czcionki w stylach
Contents
[
Hide
]Jak zmienić czcionkę alarmową i czcionkę w stylach
Problem: Jak zmienić czcionkę alarmową i czcionkę w stylach (CADNET-1060).
Wskazówki: Aby to zrobić, użyj pola DefaultFont w rysunku.
Przykład:
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"; | |
} | |
} |