-
-
Notifications
You must be signed in to change notification settings - Fork 624
[Linux, OS X, Windows] Bold baseline differs from Regular baseline #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looking into this. Let me check the actual positions in the font editor and play in a few text editors. I haven't noticed this and (thought that) I confirmed that all sets were properly aligned to the baseline. Thanks for reporting it. |
This also happens on sublime on windows. |
I'm also finding this in |
I can confirm that the glyph position is properly oriented on the baseline in the bold and regular sets. Can you confirm that you are using the ttf and not the otf files (both Windows and Linux users)? |
I'm using the TTF files on Linux. |
yes, using ttf on Windows. |
TTF here, too. |
@ptomato what editor are you using on OS X 10.10? I thought that this was going to be a hinting issue until @fernandaparisi reported this on OS X. Let me dig into the vertical metrics. The problem may lie there. It doesn't show up on my system (OS X 10.10.5) in Sublime Text 3. Here are images at 12px and 8px. I tested 10px and can confirm that I am not seeing it there either. |
@chrissimpkins I was using 14px for size. Tried 12px and 10px and the line height difference was gone. |
@fernandaparisi hmmm... I am stumped. OK let me give this a bit of thought. Thanks for sharing this. That is helpful. |
@chrissimpkins I'm using Sublime Text 3 on OSX 10.10.5, but with the OTF, not TTF, fonts. I did not previously see the problem there because until I read @fernandaparisi's message above, I had not tried 14pt. (Thanks @fernandaparisi!) I can confirm that I also have the problem at 14pt size. |
I can confirm that the bold set is aligned to the baseline. The baseline is shaded in the images below and I confirmed that the characters are positioned at 0 units (i.e. right on the baseline) where there are no bowls that overhang. The latter is an intentional design issue to make these curved lower areas of the glyphs appear to align on the baseline. If you don't provide this overhang, they appear too high relative to other glyphs. Let's check one thing before I dig into the hints. Do you mind setting the bold characters in your editor to only those that do not have an overhang past the baseline. Use only glyphs like the |
@chrissimpkins Here's a screenshot of what that looks like (OSX 10.10, Sublime Text 3, OTF fonts at 14pt size); the baseline is still different between the bold and regular characters. |
OK that's great. Just a thought. Let me look at the hinting at those larger point sizes. To confirm this goes away below 14px too? |
@chrissimpkins That's right, below 14px everything is normal. For comparison here's the same text at 32px: |
Thanks for the new image. Will update when I have more information. |
So I checked the hints with the freetype grid viewer and this does not appear to be the source of the problem. Here are the hinted freetype2 renders on the grid at 8pt and 18pt. I looked at all text sizes from 6 - 32pt in both the regular and bold set. The bold glyphs never get nudged off of the baseline. RegularBoldLet me look at the vertical metrics tonight. I may generate a few test builds with different vertical metrics if you are willing to try them. |
New test build with updated vertical metrics is now available in #111. Please give these builds a try and let me know what you are seeing on your platforms. I think (hope) that this should take care of this problem. Thanks |
Yes, that build seems to fix things for me; I tried on OS X / Sublime Text 3 and Fedora Linux / Sublime Text 3 and Terminal (Gnome desktop). Thanks for fixing! |
Tested on Windows 10, Sublime 3, works. Nice! |
@chrissimpkins I still got the baseline difference on OS X, using Sublime Text 2, at 14px, ttf version. But on Text Edit, using rich text mode, it seems OK: Also on Terminal: Maybe the issue is with Sublime Text autocomplete tooltip? |
@fernandaparisi did Sublime Text happen to stay open between font installs? it seems to cache font files for me (in version 3 series). If so, will you close and reopen it to see if that works? |
@chrissimpkins It was closed. I'll need to restart my computer soon, and I'll run the test again. |
@chrissimpkins ha, a good old restart was all it needed :) |
@fernandaparisi Excellent! Thank you very much for testing it Fernanda. Glad to hear that this addressed it. Thanks to all of you for your help with this. I believe that this was the first report of this problem and it was causing a number of subtle associated issues. I will leave this thread open until we push it with the next release build. |
@fernandaparisi Is that a cloud in your PS1 by the way? Icon font? |
@chrissimpkins it's from an oh-my-zshell theme called Cloud - https://github.com/robbyrussell/oh-my-zsh/wiki/themes#cloud I don't know how they pulled off the cloud icon, tho :) |
It looks like they are using a Unicode symbol character (U+2601, It must be from a fallback font. Thanks! |
These changes are now included in the v2.015 release. Thanks to all for your contributions with this issue report and all of the testing that you performed on this issue. This led to a change that affected a large number of users. I greatly appreciate all of your help. |
Perhaps best illustrated by a screenshot:

(those are two different windows side by side, Sublime Text and Gnome Terminal)
The baseline of Bold text is one pixel higher than that of Regular text. This happens at 8, 9, and 10 point, and does not happen with Bold Italic.
It also probably has to do with the font rendering stack on Gnome because I've seen it on Debian 8.1 (Gnome desktop) but not on Mac OSX 10.10.
The text was updated successfully, but these errors were encountered: