本帖最后由 作者 于 2009-3-19 0:47:31 编辑
这个问题应该是一个老问题了,在论坛翻了很久没找到答案,请大家指点一下,谢谢。 如果用文字样式里的字高不为0,例如用(command "text" "0,0" "" "abc")会写不出文字,不知为什么。我弄了一个改字高为0的程序,有点麻烦,但遇到“宋体”,字体就会变成 问号,晕。程序如下: (defun wenzhi (/ st) (Setvar "CMDECHO" 0) (setq st (tblsearch "style" (getvar "textstyle"))) ;;获得文字样式群码 (if (> (cdr (assoc 40 st)) 0) ;;如果字高不为0 (if (not (member (cdr (assoc 3 st)) '("italic.shx" "romand.shx" "simplex.shx" "syastro.shx"))) (command "-style" "" "" 0 "" "" "" "") (command "-style" "" "" 0 "" "" "" "" "") ) ) (princ) ) 请问有没有更好的方法?用变量textsize又改不了0 |