You're perfectly right, and I undestand what's happening.
I'd like to react to the scaling factor, but how do I detect it from within a Mudlet Lua script?
Thanks again.
Search found 17 matches
- Mon Dec 23, 2019 8:45 pm
- Forum: Help Forum
- Topic: Handling Windows display scaling
- Replies: 9
- Views: 9919
- Thu Dec 19, 2019 8:11 am
- Forum: Help Forum
- Topic: Handling Windows display scaling
- Replies: 9
- Views: 9919
Re: Handling Windows display scaling
you have: setFontSize(16). Which means 16px. Which is why your label uses 16px font in both cases. If you don't want Mudlet's gui to scale at all, Mudlet is built using Qt tolkit, so disabling (or tweaking) scaling in Qt will directly affect Mudlet. More info here: https://www.qt.io/blog/2016/01/26...
- Wed Dec 18, 2019 9:54 am
- Forum: Help Forum
- Topic: Handling Windows display scaling
- Replies: 9
- Views: 9919
Handling Windows display scaling
Hi, the UI I'm designing with Mudlet is composed of many elements which sizes are pixel-perfect. In many cases I draw labels with a width/height (defined in pixels) that can perfectly fit text of a specific size (defined in points). Everything goes well if Windows is set to 100% scale (control panel...
- Mon Aug 05, 2019 2:30 pm
- Forum: Help Forum
- Topic: Wide characters overlap
- Replies: 6
- Views: 6756
Re: Wide characters overlap
I tried with the text you linked. Some emojis are "single spaced" others are "double spaced". In either case the character is partially cut on the right. Note that the output is perfect in the command bar: https://snag.gy/8u3QVv.jpg Taking 2 adjacent characters rendered in the 2 ...
- Mon Aug 05, 2019 1:41 pm
- Forum: Help Forum
- Topic: Wide characters overlap
- Replies: 6
- Views: 6756
Re: Wide characters overlap
I can see colored emoji since before Mudlet 3.1, I'm pretty sure about that. I think that's a Windows' feature: when it finds a character falling in the "emoji" category not handled by the selected font, it fallbacks to Segoe Color Emoji. Perhaps this is the cause of the issue. I suppose m...
- Mon Aug 05, 2019 9:02 am
- Forum: Help Forum
- Topic: Wide characters overlap
- Replies: 6
- Views: 6756
Wide characters overlap
Hi, I was curious to try out the support for emoji characters in version 4 to implement some interesting features on my plugins, but there's something wrong. I copied and pasted the example on the news released yesterday, but the text echoed is displayed like this: https://snag.gy/w9LGfu.jpg And the...
- Fri Sep 07, 2018 7:07 am
- Forum: Help Forum
- Topic: Keeping variables through multiple lines
- Replies: 4
- Views: 3925
Re: Keeping variables through multiple lines
I'd use 3 triggers to handle this: 1st. the initiator: could be the multiline trigger you said to capture the beginning of the "table". It should set a global flag (like "playersTrigger=true") 2nd. matches evey line of your table (something like ^(\S)\s+[-] (.+)$ ) and contains t...
- Thu Sep 06, 2018 1:19 pm
- Forum: Help Forum
- Topic: Sync with online DB
- Replies: 16
- Views: 15363
Re: Sync with online DB
@SoulSpirit The PR is ready. If you'd like to test this, here are testing builds: https://transfer.sh/3TVR4/Mudlet-3.13.0-testing-PR1957-7e77b9d-linux-x64.AppImage.tar Linux https://transfer.sh/8FKdk/Mudlet-3.13.0-testing-PR1957-7e77b9d.dmg macOS https://ci.appveyor.com/api/buildjobs/86g7wpny37cgex...
- Wed Sep 05, 2018 1:24 pm
- Forum: Help Forum
- Topic: Sync with online DB
- Replies: 16
- Views: 15363
Re: Sync with online DB
local handlerId = registerAnonymousEventHandler( "sysDownloadDone", function(_, filename) local f, s, result = io.open(filename) if f then result = f:read("*a"); io.close(f) end if result:find("The document has moved",1,true) ~= nil then local redirectUrl = result:matc...
- Tue Aug 28, 2018 6:59 am
- Forum: Help Forum
- Topic: Git
- Replies: 4
- Views: 3875
Re: Git
Thanks, it works!
Not very intuitive to setup, but it works