Ascii Art looking weird/wrong Editor Gadget

Just starting out? Need help? Post your questions and find answers here.
Sebert
New User
New User
Posts: 8
Joined: Wed Mar 26, 2014 2:50 pm

Ascii Art looking weird/wrong Editor Gadget

Post 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
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Ascii Art looking weird/wrong Editor Gadget

Post by Danilo »

You need to set a monospace font for your editor gadget, using SetGadgetFont().
Sebert
New User
New User
Posts: 8
Joined: Wed Mar 26, 2014 2:50 pm

Re: Ascii Art looking weird/wrong Editor Gadget

Post 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
Post Reply