首页

  1. 首页
  2. 测绘论文
  3. 内容

MicroStation VBA 查找指定名称字体

Function FindFontByName(fFontName As String) As Font
Dim fFonts As Fonts
Dim fFont As Font
Set FindFontByName = Nothing
Set fFonts = ActiveDesignFile.Fonts
For Each fFont In fFonts
If fFont.Name = fFontName Then Set FindFontByName = fFont
Next
End Function
说明:通过指定字体的名称返回相应字体,也放有更好的办法,但我暂时是这样实现的,好在也不太花时间。

相关文章

回到顶部
请复制以下网址分享
MicroStation VBA 查找指定名称字体
https://m.gc5.com/chgc/chlw/10173316.html