如何设置字体
<p>Set Mtextobj = ThisDrawing.ModelSpace.AddMText(pick_point(4), (4 * Text_Heigh), Text_String)</p><p>怎样设置刚写入字符的字体为STANDERD</p> '---------------------------------------------定义字体为统一字体<br/>Dim styobj As AcadTextStyle<br/>Dim typeface As String<br/>Dim pitchandfamily As Long<br/>Set styobj = acadapp.ActiveDocument.TextStyles.Add("统一字体")<br/>typeface = "统一字体"<br/>pitchandfamily = 1 Or 6<br/>styobj.SetFont typeface, True, True, 1, pitchandfamily<br/>acadapp.ActiveDocument.ActiveTextStyle = styobj
页:
[1]