Page 1 of 2

Font In Main Window Randomly Changing

Posted: Sun Apr 28, 2013 6:25 pm
by Jor'Mox
Sometimes when I connect (or raise a "sysConnectionEvent"), the font in my main window will suddenly change (to a font that isn't fixed width). Is there a way to avoid this, or, if not, fix it when it occurs without going into settings, changing the font, and then changing it back manually?

Re: Font In Main Window Randomly Changing

Posted: Sun Apr 28, 2013 11:43 pm
by Vadi
I don't think the font changes, if I know what you're talking about. Scroll up/down seems to fix this. Raising the sysConnectionEvent doesn't seem to make it happen...

Re: Font In Main Window Randomly Changing

Posted: Sun Apr 28, 2013 11:53 pm
by Jor'Mox
Ah, yes, scrolling up and down does fix it. Seems like a rather strange bug. It doesn't always seem to follow the sysConnectionEvent for me, but it happens a lot.

Thanks.

Re: Font In Main Window Randomly Changing

Posted: Mon Apr 29, 2013 12:21 am
by Vadi
It's a bit of an odd one, seems to happen due to newer Qt versions. Haven't been able to track it down yet.

Re: Font In Main Window Randomly Changing

Posted: Mon Apr 29, 2013 3:36 pm
by Jor'Mox
So, I double checked, and with my current profile, it does, in fact, happen every time I raise the sysConnectionEvent, likely due to something else that I have happening in response. Since things are still fairly simple on my end, I could track down the line that triggers it, if you want.

Re: Font In Main Window Randomly Changing

Posted: Mon Apr 29, 2013 10:35 pm
by Vadi
Yeah, please do.

Re: Font In Main Window Randomly Changing

Posted: Mon Apr 29, 2013 11:27 pm
by Jor'Mox
Well, I have narrowed it down some, but I can't dig around inside of Geyser, so it is somewhat limited.

This line triggers it 100% of the time, for me.
Code: [show] | [select all] lua
local test1 = Geyser.MiniConsole:new({name = "test1"})
But this line doesn't. (I thought it would be worth ruling out the functions that would in theory be used in that function)
Code: [show] | [select all] lua
createMiniConsole("test1",0,0,0,0)
Nor do any of the base functions associated with it that I tested, namely:
showWindow()
hideWindow()
resizeWindow()
setTextFormat()
moveWIndow()
setMiniConsoleFontSize()
setWindowWrap()

Re: Font In Main Window Randomly Changing

Posted: Tue Apr 30, 2013 12:01 am
by Vadi
Geyser files are available within the mudlet-lua folder of your Mudlet installation directory.

The same case seems to work for me as well!

Re: Font In Main Window Randomly Changing

Posted: Tue Apr 30, 2013 12:16 am
by Jor'Mox
I get the same thing happening when I create a Label via Geyser. So it seems to be one of the more generic functions that is causing the problem.

Re: Font In Main Window Randomly Changing

Posted: Tue Apr 30, 2013 1:21 am
by kevutian
Check to make sure the set font size wrapper is using the correct console name in the Geyser function.