My system language is English, I assume the tool bar is handled by Windows and therefore takes the system font fallback so I’m gonna put that aside. But whichever language I have my Anki set in out of Japanese, Simplified Chinese, and Traditional Chinese, only the main page (top bar, deck list, and bottom bar) and the about screen uses the font defined in qt-misc-segoe-ui. Pretty much everywhere else with Chinese characters/Kanji uses Microsoft YaHei, which is weird to me because the Windows default font fallback is Japanese fonts > Traditional Chinese > Simplified Chinese.
I tried a fresh Windows install in Traditional Chinese on an old machine, where the same thing also happens, except now it always uses Microsoft JhengHei when Anki is in Japanese or Simplified Chinese.
My Windows version:
Edition Windows 11 Home
Version 24H2
OS build 26100.4484
Anki bersion:
25.06b5 (782645d9)
Python 3.13.5 Qt 6.8.1 PyQt 6.8.0
Based on the shape of the text, I’m going to make an educated guess that this is the Congrats screen [oh, and now I see your caption!]. But let’s assume that whoever is going to take a look at this has no idea what font is the right font for any of those languages, and cannot recognize on-sight which font is being used. I need you to clarify for me what’s wrong.
The green section at the top is the title bar and menu bar. You’re right that the title bar font is controlled by Windows from outside of the app. Since the menu bar is using the same font, I would assume it’s controlled the same way. [If you want to check this, you can search up a Windows tutorial about how to change the “Segoe UI” system font to something else.]
The blue section – the top and bottom toolbars – uses the app’s specification for Segoe UI, which can be localized through the qt-misc-segoe-ui string, as you said. Those are currently set to:
The red section is defined as HTML body, which uses Bootstrap’s bs-font-sans-serif.
So I wonder if something on that list is interfering with Anki using the same font it uses for the blue section.
The blue section font should be set based on the localized UI variable. Are those all being set correctly? Are those the correct fonts for those languages?
The red section font is coming from a different list of fonts, but it should be using the same font as the blue section.
yes you are 100% correct! sorry i didn’t realize it could be confusing to people not famillar with CJK fonts lol. it’s not that big of a deal in terms of learning how to write the characters tbh since you can customize the font on the cards, but my ocd is killing me.
I tried the inspector myself and adding the correct font to that list fixes it. Seems like it should be an easy fix but I don’t really know about programming
Thanks for verifying that! Let’s have the devs take a look at how the HTML body/Bootstrap font is being selected there and if a change needs to be made.
thanks for the good work! i’m on the lastest beta (25.08b1 c57b7c49) and i noticed the tooltips in the stats screen are still using the bootstrap font stack, other than that (and the editor but i saw the bug) the fonts look great
I actually have a theory as to why that happens, since the legacy page data file doesn’t contain a font-family for their html when in the editor (but it’s there in the stats screen).