More "fun" with RTF edit boxes (None Specified)
At 07 OCT 1998 10:32:37AM Oystein Reigem wrote:
I made myself a window with two RTF edit boxes. Why? My usual dominatrix was busy today so I had to come up with something myself.
Well, I had a lot of fun with fonts not working properly, and in the end it turned out I didn't need two edit boxes after all (like you can have a lot of fun with just one whip, really). It seems the RTF edit box is finicky when it comes to how the RTF "font table groups" are formatted into lines. I certainly believed RTF-compatible software didn't care about lines at all, but with the RTF edit box if I try to put a font table group on one line like this
<code> {\fonttbl {\f1\froman\fcharset0 Courier New;} }</code>
I get the correct font (Courier New in my example) only once. The second time I set the TEXT (or DEFPROP) I seem to get some default font like Times. (Btw - the font I get is neither the usual default font for OI controls nor the font I can see in the edit box properties, but it can perhaps be a RTF default for the font family (froman in my case)). The same happens if I set the RTF text of two different edit boxes; only the first one gets the correct font.
Actually I have to reboot OI to get the correct font again. Once.
If I format the font table groups like this
<code> {\fonttbl {\f1\froman\fcharset0 Courier New;} }</code>
the font seems to come out fine.
(I don't know if there's anything useful at all in this for you RevSoft guys trying to find out more about the RTF edit box, but we can't all have fun, can we?)
![]()
- Oystein -