-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Qt 6.8.0
breaks bold usernames
#5694
Comments
6.8.0
alters font rendering in a way which breaks bold usernames6.8.0
breaks bold usernames
I couldn't see a difference in the screenshot you provided, so here are they next to each other. The username is still bold (just not as bold as before). This doesn't look like the default font. Does this happen with the default font too? I'm guessing your font provides weights that GDI couldn't display, but DirectWrite can. We currently don't use OpenType font weights, because of Qt 5 support. But in the future, we could revisit the font-weights. |
Yea it's not the default font. https://github.com/belluzj/fantasque-sans This is the font used, specifically the |
The issue is with the DirectWrite font engine when compared to the previous GDI one. Your font doesn't have a style for DemiBold (weight 600). GDI1 will show the 400 (Normal) style with a "bold simulation" (i.e. it's artificially creating a bold version). DirectWrite, the default backend on 6.8 will show the 700 (Bold) style without any simulation. So what you're seeing on 6.8 is the actual bold version of your font as intended by its artist, and the version you saw in 6.7 and earlier was a fake bold style.
I created QTBUG-130861 to see what Qt folks will have to say on this. Footnotes
|
This seems to have been a bug in GDI that we relied on (reply to QTBUG-130861). We shouldn't stay at GDI just for this bug. Especially because the font that was constructed by the emulation never existed. The fonts that experienced this didn't have a 600 weight, and GDI decided to construct one. If you look at Typst, for example, you can see that DirectWrite has similar behavior for the weight selection (i.e. uses the closest weight): Code#set page(width: auto, height: auto, margin: 1em)
#let tbl(fonts) = table(
columns: 1 + fonts.len(),
"Weight", ..fonts,
..range(100, 1000, step: 100)
.map(it => ([#it], ..fonts.map(font => text(weight: it, font: font, "My Text"))))
.flatten()
)
#tbl(("Times New Roman", "Segoe UI", "Arial")) Times New Roman only has weights 400 and 700. Typst chooses the closest weights, so for 400 (regular) is chosen for 500 (medium) and 700 (bold) is chosen for 600 (semi-/demibold). |
Checklist
Screenshots
left
![](https://private-user-images.githubusercontent.com/18603393/382654950-f6658bb2-92ce-4ec2-906a-da5732187048.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4MDU5NjAsIm5iZiI6MTczOTgwNTY2MCwicGF0aCI6Ii8xODYwMzM5My8zODI2NTQ5NTAtZjY2NThiYjItOTJjZS00ZWMyLTkwNmEtZGE1NzMyMTg3MDQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDE1MjEwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1MWZlZTFmMDJjMGRmNTE0YjJiZTgwN2U5MTBjMGY0NTk0NzMzNTFlNTc2YjVmMGJjZGRmNjllMTZmYzIyMDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Prgk8cVBWoel_z_womow0r5rm_tQO6YrpBMzO5KzhQ8)
6.7.2
, right6.8.0
OS and Chatterino Version
6830427 built on 2024-11-04 with Qt 6.8.0, MSVC 194134123 Running on Windows 10 Version 21H2, kernel: 10.0.19044
The text was updated successfully, but these errors were encountered: