Code Red > AutoLISP (Vanilla / Visual)

Changing Fonts

(1/4) > >>

cmwade77:
The attached routine (FontSub and FontRemap commands are the issues) are supposed to remap all fonts and styles that use RomanS or RomanS_New to arial.ttf, but sometimes it remaps to  seemingly random fonts, anyone have any ideas why?

mhupp:
Just a guess here quickly looking over the code. (stripmtext SS "F") seems to be stripping the font of mtext and changing it to whatever the current text style font is.
If you run that command and select some mtext you can just uncheck font. make sure you have remember checked and should fix the problem.

Maybe the F means font? idk maybe remove that line if its still a problem.

-edit-

yep "F" = Font

tombu:
Curious why you added these functions at the end of the StripMtext code.

FontSub, CivilSub and FontRemap are supposed to remap a lot more fonts and styles than just RomanS or RomanS_New. Are you sure those are random? Can you list any that were modified that shouldn't have been?

cmwade77:

--- Quote from: tombu on November 24, 2021, 07:43:05 AM ---Curious why you added these functions at the end of the StripMtext code.

FontSub, CivilSub and FontRemap are supposed to remap a lot more fonts and styles than just RomanS or RomanS_New. Are you sure those are random? Can you list any that were modified that shouldn't have been?

--- End quote ---
Those are also changed, it is just the RomanS and RomanS_New that don't always get changed correctly for some reason. Basically, we are in the process of a CAD Standards changeover to change to TTF due to new DSA requirements that anywhere we reference a sheet, there must be a link and some other plan checkers that now require all text be machine readable, so easiest to do a blanket change.

cmwade77:

--- Quote from: mhupp on November 24, 2021, 07:29:08 AM ---Just a guess here quickly looking over the code. (stripmtext SS "F") seems to be stripping the font of mtext and changing it to whatever the current text style font is.
If you run that command and select some mtext you can just uncheck font. make sure you have remember checked and should fix the problem.

Maybe the F means font? idk maybe remove that line if its still a problem.

-edit-

yep "F" = Font

--- End quote ---
But I wouldn't think it should be changing the text style definition itself, just removing font overrides from the mtext, which is what I want it to do.

And yes, I am sure it is random, as it sometimes changes to some Aribac font or something like that, which makes no sense.

Navigation

[0] Message Index

[#] Next page

Go to full version