alin Posted July 2, 2022 Posted July 2, 2022 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.
vitor Posted July 2, 2022 Posted July 2, 2022 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.
alin Posted July 2, 2022 Author Posted July 2, 2022 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.
vitor Posted July 2, 2022 Posted July 2, 2022 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.
alin Posted July 2, 2022 Author Posted July 2, 2022 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. -------- 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. 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
vitor Posted July 2, 2022 Posted July 2, 2022 Ah, now I can reproduce. It indeed looks like a macOS rendering bug. Can you confirm that with Chalkboard it only happens when it’s at under 38px? alin 1
alin Posted July 3, 2022 Author Posted July 3, 2022 1 hour ago, vitor said: only happens when it’s at under 38px? Interesting 🧐 I’ll check in a few hours and will let you know.
alin Posted July 3, 2022 Author Posted July 3, 2022 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.
vitor Posted July 3, 2022 Posted July 3, 2022 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.
Andrew Posted September 23, 2022 Posted September 23, 2022 @alin This should now be fixed in the 5.0.3 b2080 pre-release.
alin Posted September 23, 2022 Author Posted September 23, 2022 1 minute ago, Andrew said: @alin This should now be fixed in the 5.0.3 b2080 pre-release. Yep it's fixed, thanks a lot for this!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now