ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Setting the richedit display to fixed-width

(1/1)

pmoore:
Is it possible to change the font of the richedit display (the one set by window.richeditmode)? Specifically, to a fixed width font. I have some tabular output (a simple month calendar) I want to display, but it's messed up completely by a proportional width font...

Thanks
Paul

mouser:
yes it is:


lanux128:
but there is also this problem where the font settings may be altered by plugins as noted in this thread.

pmoore:
yes it is:
-mouser (September 08, 2008, 10:30 AM)
--- End quote ---
Ah, thanks. That helps, but what I was actually after was a way that a plugin could do this, just for one display...

Aha! I found it. If I set window.richeditmode to a string of RTF format text, I can do what I want. Pity RTF is such an ugly format, but never mind - it works :)

Navigation

[0] Message Index

Go to full version