https://bugs.kde.org/show_bug.cgi?id=427733

--- Comment #23 from Alvin Wong <[email protected]> ---
(In reply to Tyson Tan from comment #17)
> In Windows 11 (25H2 -- though likely earlier), Krita's default CJK UI fonts
> now fall back to legacy ones. Microsoft renamed its fonts, breaking Alvin's
> prior fix; the font config needs updating. I'll attach screenshots below.

I don't have a Windows 11 system to test with, but I will say regarding the
code, Krita obtains the default font directly from Windows the same way a lot
of other programs do, and I don't see Windows intentionally breaking this
somehow in some update of Windows 11. Krita does not use hardcoded font names
for this.

Regarding the font:

"Microsoft YaHei" is a font family first introduced in Windows Vista, and has
always existed since then. "Microsoft YaHei UI" is an _addition_ to the family
since Windows 8, which from my understanding is almost identical to "Microsoft
YaHei" except for some changes to the vertical font metrics. Nevertheless, it
is a separate entry in the list of fonts.

In practice, since "Microsoft YaHei" and "Microsoft YaHei UI" are almost
identical, they are contained in the same TTC file `msyh.ttc` (much like how
SimSun and NSimSun share one `simsun.ttc`). Normally, one should have both of
these fonts listed, or neither. If one is missing, my instinct would suspect
either: (1.) "Microsoft YaHei UI" being hidden by settings, (2.) an ancient
version of "Microsoft YaHei" being installed over the system one, or (3.)
Microsoft screwing up the font file in an update.

See also:
https://learn.microsoft.com/zh-hk/typography/font-list/microsoft-yahei

I would advice you check the font file you have. In Windows settings, find the
fonts section and go into "Microsoft YaHei" (or it may be labelled "微软雅黑"),
then select "Regular". It should show the file path as
`C:\WINDOWS\FONTS\MSYH.TTC` and the version should be "6.31". Alternatively,
you can try navigating to `C:\Windows\Fonts` from Explorer and open the font
file from there. The font viewer application should show a "Next" button, and
when clicked will show you information on the "Microsoft YaHei UI" font.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to