Open ForNeVeR opened 5 years ago
Yes TTFs seem to work better on windows
That's very strange and weird. Do we have any explanation? I've tried to compare ttf and otf glyphs using fontforge, but wasn't able to see any noticeable differences, I'm not a font expert though. These files are produced from the same sources, right? So the only difference is inside of a Windows font renderer, and we have completely no control over it?
My guess is Windows applies different hinting to different formats. Or maybe only TTFs has hinting info?
The issue looks almost non-actionable from FiraCode side (I'll try to report the issue to Microsoft though), but should we change the Fira Code Chocolatey installer to install TTF instead of OTF? What are pros/cons of such decision? Is this issue tracker the right place to discuss Fira Code Chocolatey installer? Should I file a separate issue?
I have no idea who maintain it, but it should install TTF by default, yes.
Alright, I will reach them. Thanks a lot!
At least some Windows software definitely seems to prefer TTF over OTF - I noticed in the (quite dated) native Font dialog box that only the TTF version will get ClearType rendering (OTF on the left, TTF on the right):
Likewise in Notepad++ there was no ClearType rendering with the OTF version (unless 'Enable smooth font' is toggled on - the TTF version doesn't seem to need this). Notepad2, which lacks such an option, doesn't render Fira Code with ClearType if the OTF version is installed.
On Windows in Java-based apps for bold font variant I get weird placement for dots over "i" and "j".
It is easier to spot in Java-based applications due to specific font sizing, bug it looks like actually every program is susceptible to this.
Check how dots over "i" and "j" are weirdly placed (looks like they've been moved to the right):
Other font sizes (e.g. 13 or 15) usually work okay, but e.g. for 16 it looks like dots are moved to the left:
I'm not sure if it's Fira Code issue or not, but looks like dots placement works strange not only for Java programs. E.g. compare these two screenshots from Visual Studio (which works better in that aspect but still not ideal):
Looks like the dot is misplaced to the left for size = 12.
I wasn't able to reproduce the issue with TTF fonts or on a retina display. So, for now the best advice for users who have the issue is to switch to TTF variant of Fira Code.