TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: DEVITG on May 03, 2008, 09:43:03 AM

Title: How to change TEXT and MTEX modes
Post by: DEVITG on May 03, 2008, 09:43:03 AM
At this topic
 
http://www.theswamp.org/index.php?topic=22887.0 (http://www.theswamp.org/index.php?topic=22887.0)


It was shown  how to UNDERLINE a text by adding %%U , or to a MTEXT by  "{\\L"  as prefix , and  "}" as sufix.

Can you show how to do other changes in both , as BOLD CURSIVE , and so on ?
Title: Re: How to change TEXT and MTEX modes
Post by: gile on May 03, 2008, 12:18:06 PM
Hi,

What I founded for mtexts:

"{\\fArial|b1|i0|c0|p34;your text}" => your text (bold)
"{\\fArial|b0|i1|c0|p34;your text}" => your text (italic)
"{\\fArial|b1|i1|c0|p34;your text}" => your text (bold and italic)

I'don't know about c and p options

Some others options available

"{\\Oyour} text" => overlines "your"
"{\\C1;your} text" => your text (color 1)
"{\\H5;your text}" => absolute height
"{\\H2x;your text}" => relative height
"{\\T2;your text}" => space between characters (from 0.75 to 4)
"{\\Q20;your text}" => inclination angle
"{\\W2;your text}" => relative width (stretch the text)




Title: Re: How to change TEXT and MTEX modes
Post by: DEVITG on May 03, 2008, 12:20:35 PM
Thanks Gile.
Title: Re: How to change TEXT and MTEX modes
Post by: T.Willey on May 03, 2008, 01:52:09 PM
The format strings for mtext are in the help files, as for text, I'm not quite sure that you can do as much to them as you can with mtext.
Title: Re: How to change TEXT and MTEX modes
Post by: VovKa on May 03, 2008, 07:56:29 PM
as for 'TEXT' besides %%U one can use the following
%%C
%%O
%%D
%%P