orbitalquark / textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.
https://orbitalquark.github.io/textadept
MIT License
636 stars 38 forks source link

Font quality #451

Closed humphreylee closed 1 year ago

humphreylee commented 1 year ago

I have recently tried several fonts - "IBM Plex Mono", "Intel One Mono" & "Source Code Pro" (on Windows 11), but display quality are pretty bad. However, "Fira Code", "Red Hat Mono" & "Noto Sans Mono" are displayed pretty well, though not as good as in VSCode. What am I missing - font rendering? Thanks.

humphreylee commented 1 year ago

Screenshots

With font Fira Code firacode

With font Intel One Mono intelonemono

humphreylee commented 1 year ago

Not sure if this has to do with OTF vs TTF format. Will test and report out.

humphreylee commented 1 year ago

Installed TTF fonts, replaced OTF fonts. Now, Textadept looks great again. 👍

humphreylee commented 1 year ago

May be the remaining question is how to better support OTF format, as OTF is supposed to be richer?

orbitalquark commented 1 year ago

Textadept's GUI toolkit (Qt or GTK) handles the font rendering. GTK uses Pango. I don't know what Qt uses. Perhaps their OTF font support is a bit lacking compared to TTF.

humphreylee commented 1 year ago

On Linux (Debian Sid), the font quality is fantastic despite using OTF.