Font In Main Window Randomly Changing

Jor'Mox
Posts: 1146
Joined: Wed Apr 03, 2013 2:19 am

Font In Main Window Randomly Changing

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

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Font In Main Window Randomly Changing

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

Jor'Mox
Posts: 1146
Joined: Wed Apr 03, 2013 2:19 am

Re: Font In Main Window Randomly Changing

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

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Font In Main Window Randomly Changing

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

Jor'Mox
Posts: 1146
Joined: Wed Apr 03, 2013 2:19 am

Re: Font In Main Window Randomly Changing

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

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Font In Main Window Randomly Changing

Post by Vadi »

Yeah, please do.

Jor'Mox
Posts: 1146
Joined: Wed Apr 03, 2013 2:19 am

Re: Font In Main Window Randomly Changing

Post 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()

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Font In Main Window Randomly Changing

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

Jor'Mox
Posts: 1146
Joined: Wed Apr 03, 2013 2:19 am

Re: Font In Main Window Randomly Changing

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

User avatar
kevutian
Posts: 217
Joined: Fri Aug 20, 2010 8:18 pm
Location: United Kingdom
Contact:

Re: Font In Main Window Randomly Changing

Post by kevutian »

Check to make sure the set font size wrapper is using the correct console name in the Geyser function.

Post Reply