Bug #5790
openEditbox does not use set Font
0%
Description
I have all Fonts in the program set to use Segoe UI at Size 9, including the Editbox. It works for all other areas, but the Editbox does not respect this setting. By default, it writes all text in the Editbox in some other font, see attached screenshot comparison. Now, when I go into the settings and change the Font, for example changing it to Size 12 and then back to Size 9, it will switch properly to Segoe UI. But it only does it for the current tab. And when I restart the client, the Font choice is again reverted.
So there's two bugs I can discern:
1. AdiIRC does not respect or retain the Font setting for the Editbox.
2. AdiIRC does not apply a changed setting to all Editboxes, but only the current one.
Beta build from 29. Oct 2023, but it happens in stable 4.4 also.
The screenshot shows the Editbox at the bottom and the Message log above it.
Files
Updated by Per Amundsen 12 months ago
Do you have a script that uses the /font command on a specific window?
Updated by Myles D 12 months ago
No, I only have a script that you wrote for me some time ago for bold, italics etc. The one from here: https://dev.adiirc.com/issues/5495
Updated by Per Amundsen 12 months ago
Very odd, can you try copy your adiirc.exe to a folder somewhere and run adiirc from there to see if you can reproduce the issue with default options?
Updated by Myles D 12 months ago
It appears that deleting the 2 DLLs from the Program and AppData directories and letting the executable re-create them (only in the AppData this time) resolves this. It also appears that these DLLs were created in older versions of the install and then just carried over. I think maybe a simple fix would be that new versions of the software just delete the DLLs an then recreate the new ones appropriately.
Am I getting this right? Anyway, it fixed it for me.
Updated by Per Amundsen 12 months ago
Are you referring to AdiIRCAPI and AdiIRCAPIv2?
They are bundled inside adiirc.exe and are added/updated to the adiirc folder on startup.
They don't have anything to do with the Editbox though, must have been something else.
Updated by Myles D 10 months ago
Well, I have found more minor weirdness with fonts. I have now set every Font in the program to Segoe UI, Size 10. But there are still differences between the Menubar, and the Editbox & Messages. I don't know which one is "correct" of the two, but something is not adhering to settings properly.
At least the thing with Font choices not working right is resolved for me, though I have no idea why it wouldn't do it before and it does it now.
Updated by Per Amundsen 10 months ago
You can try typing /setoption Misc UseOldRtb True, then restart adiirc, it will use an older version of the richtextbox (same as notepad), although some features will be unavailable.