- (defun c:tt (/ font bigfont)
- (vl-load-com)
- (vlax-for x (vla-get-textstyles
- (vla-get-activedocument (vlax-get-acad-object))
- )
- (princ "\n字体样式:")
- (princ (vla-get-name x))
- (princ ",字体:")
- (vla-getfont x 'font 'bold 'italic 'charset 'pitchandfamily)
- (if (= font "")
- (princ (vla-get-fontfile x))
- (princ font)
- )
- (if (= (setq bigfont (vla-get-bigfontfile x)) "")
- (princ ",大字体:无")
- (princ (strcat ",大字体:" bigfont))
- )
- )
- (princ)
- )
|