Re:Font height differences between Windows and Mac (2019)
by mnutt on Friday January 12, 2024 @07:13PM
(#38975935)
I struggled with this recently, upgrading qtwebkit from Qt5 to Qt6. Qt5 used platform-specific height values, while Qt6 now uses win height values, for consistent rendering across all platforms. It’s better in concept, the only issue is that the really big cross-platform browser _doesn’t_ so it turns into “why doesn’t this font rendering look like Chrome on Mac/linux?”
[ Parent
| on HN ]
Re:Font height differences between Windows and Mac (2019)
by xianwen on Friday January 12, 2024 @07:40PM
(#38976152)
How do you solve the problem?
Re:Font height differences between Windows and Mac (2019)
by eschaton on Friday January 12, 2024 @11:19PM
(#38977303)
Use native frameworks on each platform for which you’re building an application, with a cross-platform non-UI core.
Re:Font height differences between Windows and Mac (2019)
by eschaton on Friday January 12, 2024 @11:19PM
(#38977299)
It’s not better “in concept,” it’s worse. Not only is it a non-native API, it’s abandoning one aspect of even attempting to mimic being native in favor of “branding.”
If someone insists that an app on the Mac should look the same as on Windows they’re an idiot. If they say an app on the Mac should look the same as a web page on Windows or Linux they’re a malicious idiot.