他是说粗体,而不是黑体。
- Sub TextB()
- Dim ent As AcadEntity
- Dim pnt As Variant
- On Error Resume Next
- Do
- ThisDrawing.Utility.GetEntity ent, pnt, "选择多行文字:"
- Dim txt As AcadMText
- Set txt = ent
- If Err Then
- Err.Clear
- Else
- Exit Do
- End If
- Loop
- Dim str As String
- str = txt.TextString
- '加粗,其中SimSun为宋体,b1为加粗
- str = "{\fSimSun|b1;" & str & "}"
- txt.TextString = str
- ThisDrawing.Regen acActiveViewport
- End Sub
|