just wondering if theres a certain way to change it so this certain text style is always capital?
Solved! Go to Solution.
Solved by Kent1Cooper. Go to Solution.
I think it can be done with a reactor. When a certain text style is current, it toggles the TEXTALLCAPS on and vice versa.
Something like this...
(defun c:Reactor-TextStyle-OnLoad () ;; ON (if *Reactor-TextStyle-sysvarReactor* (vlr-remove *Reactor-TextStyle-sysvarReactor*)) (setq *Reactor-TextStyle-sysvarReactor* (vlr-sysvar-reactor nil '((:vlr-sysVarChanged . Reactor-TextStyle-CallBack)))) ) (defun c:Reactor-TextStyle-UnLoad () ;; OFF (if *Reactor-TextStyle-sysvarReactor* (vlr-remove *Reactor-TextStyle-sysvarReactor*)) (princ)) (defun Reactor-TextStyle-CallBack (rea lst) (if (= (car lst) "TEXTSTYLE") (if (wcmatch (getvar 'textstyle) "*ROMANS*") (setvar 'textallcaps 1) (setvar 'textallcaps 0)))) (c:Reactor-TextStyle-OnLoad) ; AUTOLOAD
It would not be difficult to create another .SHP font file, in which the character definitions of all the lower-case letters are replaced with those of their upper-case equivalents so all letters appear as capitals whether or not typed that way, and leaving all other character definitions alone, and compile that into its .SHX version. Would that do it for you?
If you want it to not have a distinctive name such as [for example] RomansUC, but to still be called just ROMANS, that's possible, BUT:
1) I'd at least first make copies of the original files with names such as ROMANSorig.shp and ROMANSorig.shx, just in case;
2) It involves the danger that when you send drawings to others, and parts of yours have been typed as lower-case [but appear as capitals], those parts will revert to lower-case because the others have the standard ROMANS font definition. That's why I would recommend using a distinctive name instead, and including its .shx file when sending drawings to others.
There was a time when AutoCAD came complete with the .SHP [the editable filetype] files of all the fonts that come with it, but no more. But there's a DUMPSHX.exe thing out there somewhere, with which a few years back I had extracted a ROMANS.shp file to work in, from ROMANS.shx, for another purpose. So I used that again for this one -- the resulting RomansUC.shp and the compiled .shx version are zipped/attached.
It was just a matter of copying the series of character definitions of the capital letters into the place of those of the lower-case letters, and changing one digit in all the copied ones' character numbers to stand for the lower-case characters accordingly. Lightly tested.
Can't find what you're looking for? Ask the community or share your knowledge.