home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 3
/
Merciful_Release_3.bin
/
software
/
f
/
finalwriter
/
finalwriterv5.03h.dms
/
finalwriterv5.03h.adf
/
FWMacros.lha
/
TxtStyle_Plain
< prev
next >
Wrap
Text File
|
1993-10-25
|
1KB
|
38 lines
/* ======================================== */
/* Final Copy II Arexx Macro - TO Plain */
/* Set the font at the insertion point to */
/* Plain. Note that this will only work for */
/* fonts whose styled names start with '_' */
/* (the underscore character) such as */
/* X X_Italic, X_Bold, X_BoldItalic. */
/* $VER: TxtStyle_Plain 3.0 (22.7.93) */
/* ======================================== */
Options Results
/* ------------------------------ */
/* Get the complete font pathname */
/* ------------------------------ */
Status FontPath
fontpath = Result
/* ------------------------------------- */
/* Get only the font filename (w/o path) */
/* ------------------------------------- */
Status FontName
fontname = Result
/* -------------------------------- */
/* Does the file name have an '_' */
/* This will signify if the font is */
/* normal or styled. */
/* -------------------------------- */
pos = LASTPOS('_', fontname)
IF (pos ~= 0) THEN
DO
pos = LASTPOS('_', fontpath)
fontpath = DELSTR(fontpath, pos)
END
Font fontpath