字体的名称你可以查看字体设置对话框中的字体名称,直接按显示的名称输入就行:
 - Sub CreateFontStyle()
- On Error Resume Next
- Dim FontStyle As AcadTextStyle
- Set FontStyle = ThisDrawing.TextStyles.Add("仿宋体")
- FontStyle.SetFont "仿宋_GB2312", False, False, 0, 0
- If Not Err Then ThisDrawing.ActiveTextStyle = FontStyle
- End Sub
|