CompuServe Messages

TextAttr Help

    12-Feb-91 17:50:57
Sb: TextAttr Help
Fm: Harry Callesis 72025,117
To: All
OK, folks, it's desperation time … I'm working my way through an Amiga programming book and have hit a snag. I can't seem to get the TextAttr structure to be recognized in the programs. For example: struct TextAttr ItalicFont = { (STRPTR) "topaz.font", TOPAZ_EIGHTY, FSF_ITALIC, FPF_ROMFONT }; struct IntuiText ItalicString = { 2, 1, JAM2, 1, 1, &ItalicFont, (UBYTE *) "Italics, maybe?", NULL }; I then use PrintIText to output the IntuiText string and it comes out in normal mode, no italics. According to the text I'm using, this all should be enough to get it to work. Actually, I was working in the section on Menus and was trying to get various text effects in some MenuItems, but when it didn't work the way it was supposed to I backtracked to something simpler to try to figure it out. What simple, obvious, "Look here, stupid" thing am I missing here? Someone please save what little sanity I have left … Thanks. Harry