[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Font size issues: size difference with Windows Console

Font size issues: size difference with Windows Console

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Eurotool   (14 posts)  [Biography] bio
Date Thu 15 Dec 2022 11:27 PM (UTC)

Amended on Fri 16 Dec 2022 10:59 PM (UTC) by Eurotool

Message
Hello, I am trying different font sizes, and I realize MUSHclient outputs fonts differently than the standard Windows Console (cmd, PowerShell, WSL, etc.).

Here is Consolas 16px (console) vs Consolas 10pt (MUSHclient):
https://i.imgur.com/dnjD3cR.png

And here is Consolas 16px (console) vs Consolas 11pt (MUSHclient): https://i.imgur.com/g6lzCI1.png

I would like to make both programs match in terms of font size. I have tried using decimals on the "size" field, but unfortunately it only accepts integers. I believe this has to do with MUSHclient using points instead of pixels for font sizes. I suspect I could use raster fonts to fix this issue, but I would rather use fonts with antialiasing.

Thank you for your help.
[Go to top] top

Posted by Fiendish   USA  (2,520 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Fri 16 Dec 2022 12:23 AM (UTC)

Amended on Fri 16 Dec 2022 12:31 AM (UTC) by Fiendish

Message

    Here is Consolas 16px (console) vs Consolas 10pt (MUSHclient): 
And here is Consolas 16px (console) vs Consolas 10pt (MUSHclient)

Something is off about your description.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Fri 16 Dec 2022 06:34 AM (UTC)
Message
If the problem is the gaps between the lines, there is a "line spacing" option in the world configuration -> Appearance -> Output pane, where you can configure the distance between lines.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Eurotool   (14 posts)  [Biography] bio
Date Reply #3 on Fri 16 Dec 2022 11:16 PM (UTC)

Amended on Fri 16 Dec 2022 11:53 PM (UTC) by Eurotool

Message
Fiendish said:

Something is off about your description.

Thanks, corrected in the OP. Issue is 10pt being too small, yet 11pt being too large.

Quote:

If the problem is the gaps between the lines, there is a "line spacing" option in the world configuration

Alright -- not exactly what I was looking for, as the font sizes are still unequal, but it does get me closer. I set the line spacing to 16px to match the console, and here is what it looks like: https://i.imgur.com/rhQbd5Z.png
[Go to top] top

Posted by Eurotool   (14 posts)  [Biography] bio
Date Reply #4 on Sat 17 Dec 2022 12:05 AM (UTC)
Message
Problem partly solved, MacGyver style -- I followed Nick's above suggestion to make the line spacing match the console's, then used open source program FontForge (https://fontforge.org/en-US/) to size down the font to 85%.

See result here: https://i.imgur.com/KnhFaDj.png

I would suggest having an option to output fonts in px as well as pt, if that's possible! Thank you all for the help.
[Go to top] top

Posted by Fiendish   USA  (2,520 posts)  [Biography] bio   Global Moderator
Date Reply #5 on Sat 17 Dec 2022 06:50 AM (UTC)

Amended on Sat 17 Dec 2022 06:56 AM (UTC) by Fiendish

Message
Points have been the standard unit for decades.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,271 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]