Page 1 of 1

Ascii Art looking weird/wrong Editor Gadget

Posted: Mon Apr 21, 2014 3:44 pm
by Sebert
Hi all,

this isn't really a serious problem, just something I am curious about:
I am converting my little project from console to a simple GUI.
I use some ASCII Art in my console and wanted it to show in the EditorGadget, so I
basically just changed "PrintN" to "AddGadgetItem". Now it looks Weird, the formatting is all wrong:

Image

but when I manually copy this text from the EditorGadget to Notepad, it looks alright again:
Image

Any Ideas why this is?

Regards

Sebastian

Re: Ascii Art looking weird/wrong Editor Gadget

Posted: Mon Apr 21, 2014 3:47 pm
by Danilo
You need to set a monospace font for your editor gadget, using SetGadgetFont().

Re: Ascii Art looking weird/wrong Editor Gadget

Posted: Mon Apr 21, 2014 4:54 pm
by Sebert
Danilo wrote:You need to set a monospace font for your editor gadget, using SetGadgetFont().
Hey Danilo,

that did it. Thank you very much !

Regards

Sebastian