eigilnikolajsen / commit-mono

Commit Mono is an anonymous and neutral programming typeface.
https://commitmono.com/
1.14k stars 16 forks source link

Odd issue with underline in non-monospace apps #10

Closed Akselmo closed 11 months ago

Akselmo commented 12 months ago

Hey, I don't know if this is a font thing or app thing, but felt like asking..

I like using this font everywhere, basically. It's great, helps me read things.

However, seems in non-monospace fields, the underlining behaves a bit oddly. Like it's a bit squashed on top of the text?

In the screenshot, above text is in Konsole, KDE terminal app. The text below is in Nheko, a Qt chat application for Matrix.

image

Seems the bug is also apparent in Kate, KDE code editor:

image

It seems the gap between underline and the text is gone in some applications.

I am using the otf fonts from the dev packages, only things I've customized are alt-g and square-dots.

I don't know if this is a font thing or linux thing or Qt thing... But all apps I screenshotted use Qt, so I am not sure.

My system info:

Operating System: Arch Linux 
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600

Is there anything I could help to do to track this down? Again, I really love this font, it made my reading experience much easier everywhere, and having the ability to use single-storey-g is great.

Alternatively, non-monospace version of this font for use in system wide applications that do not expect to use monospace fonts would be great! I think that may fix the issue, but not sure.

eigilnikolajsen commented 12 months ago

Interesting. I have an idea to why it is looking weird - I will try to fix.

Akselmo commented 11 months ago

Hi, any updates on this? :)

eigilnikolajsen commented 11 months ago

Will work on it, when I have time.

eigilnikolajsen commented 11 months ago

@Akselmo will you check if this is fixed with the latest version, that I just shipped?

Akselmo commented 11 months ago

image

Yeah, looks better now, it's not underlining the bottom dot in the : like previously.

rben01 commented 11 months ago

Just another datapoint, here is underline in macOS Terminal. Looks fine.

image
Akselmo commented 11 months ago

Seems font size affects a bit to the underline position. On font size 11 it looks fine, but on 10 it still gets a bit too close to the bottom dot in :. Er, nevermind.

10px image

12px image

16px image

Also something interesting I found.. In libreoffice if I tried to underline the font, it did not show up at all

image

Attached the odt file just if you want to give it a try as well commitmonotest.odt

eigilnikolajsen commented 11 months ago

I don't know where to go with this issue, can I close it?

Akselmo commented 11 months ago

I don't know where to go with this issue, can I close it?

Fine by me!