Jump to content

Using a non-System font adds uneven bottom padding


Recommended Posts

Without changing any padding settings (or any other settings in Appearance), when using a font other than System, there's some bottom padding added in the search field.

 

I'm using macOS 13 beta2, and I'm pretty sure I first noticed it when I upgraded to Ventura so it's most likely related to this.

 

I've seen my fair share of UI bugs in my own apps after upgrading to Ventura, so if you think this is a macOS bug that will be solved in the future, I can understand it.

 

172671e7dec8b972244944e50c1f18d39dbd0ad5

Link to comment

Welcome @alin,

 

Unless the same font has different heights across multiple macOS versions, this won’t be a bug. Different typefaces have different heights and different baselines (a type glossary might help) so it’s expected that different fonts look larger or smaller in the search box. These are features decided by the type designer.

Link to comment
36 minutes ago, vitor said:

Welcome @alin,

 

Unless the same font has different heights across multiple macOS versions, this won’t be a bug. Different typefaces have different heights and different baselines (a type glossary might help) so it’s expected that different fonts look larger or smaller in the search box. These are features decided by the type designer.

Thanks for the response!

 

What's most notable is that this behavior did not exist in macOS versions before macOS 13, even though I've been using custom fonts for that field ever since I started using Alfred.

 

I've tested as many fonts as I could now, and some fonts in the Standard Fonts submenu seem to not trigger this:

 

  • Helvetica (all)
  • Lucida Grande
  • Geneva
  • Futura
  • Courier
  • Optima

Any other custom font I try has this issue.

 

I'm not talking about the font size here, which I'm aware it can vary. I'm talking about the uneven padding, where the text is not centered vertically anymore.

Link to comment
19 minutes ago, alin said:

What's most notable is that this behavior did not exist in macOS versions before macOS 13

 

I tried it on Monterey and Ventura and it seems to behave the same.

 

21 minutes ago, alin said:

some fonts in the Standard Fonts submenu seem to not trigger this

 

Rather, those probably have similar metrics which is why you’re not seeing a difference.

 

21 minutes ago, alin said:

I'm not talking about the font size here, which I'm aware it can vary. I'm talking about the uneven padding, where the text is not centered vertically anymore.

 

Right, we’re talking about the same thing. The baseline (see glossary above) can be higher or lower in the overall box the text fills. You can see it by hovering over the text in the Appearance preferences. Try the font Chalkboard. You should notice that now the extra padding seems to be on the top. That is because the ascender height is larger than the descender height. In Source Sans Pro, the reverse appears to be true. These metrics are intrinsic to typefaces an chosen by the designer so that all characters work as intended. Some fonts are designed for long pages of text, others for posters, or others digital displays, and more. Some will then look better or worse in a search box at the centre of your screen. It feels that Alfred should respect those design choices.

Link to comment

Monterey 12.3

 

Just so I can be sure I'm not losing my mind, this is how it looks now on Monterey 12.3 and how it always looked for the few years I've used Alfred before.

 

You can see the caret is centered in the input field, no matter the font, and the text baseline is aligned correctly relative to the center.

 

image.png.c52b7a86394f2519a93e4a7a9e920cbd.png

 

--------

 

Ventura 13.0b2

 

This is how it looks now on macOS Ventura. It started appearing very recently and simply doesn't look right. In my opinion centering text in an input field is a completely different matter from respecting design choices of fonts when using them on a page, headline etc.

image.png.633e97cfd9f176f62936f7d25362a7c8.png

 

I just checked older Alfred versions until 4.3.4 on Ventura and the problem is still there, so it's definitely a change in AppKit (or SwiftUI if that is used by any chance), not a change in Alfred that caused this.

 

It's possible that a more recent Monterey update also introduced this change.

 

I'm reporting this just in case it can be fixed easily by adjusting something like NSAttributedString.baselineOffset

Link to comment

Indeed, at 38px and higher the issue does not occur with Chalkboard.

 

Can't say the same for Source Sans Pro, the issue appears on all sizes up to the maximum of 64px.

Link to comment

I’m seeing that too. Chalkboard is the only one I found so far with that behaviour. Weird. Might not be worth pursuing yet (as opposed to waiting for the next beta), but I’ll open a ticket internally.

 

Thank you for the report, quick feedback, and helpful images.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...