Skip to content
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

Source Han Sans CFF2 VF (or any CFF2 font) causes Windows text rendering to blank out (Windows 10 and 11) #290

Closed
NightFurySL2001 opened this issue Apr 8, 2021 · 15 comments

Comments

@NightFurySL2001
Copy link

NightFurySL2001 commented Apr 8, 2021

In Windows 10 20H2, using Source Han Sans with localized CJK name (e.g. 思源黑体 VF or 思源黑體 VF) enabled on system (either using a localized version of Windows or choosing the support option in language settings) will crash the Windows rendering engine when trying to use the font in Windows font choice or Microsoft Office. All system UI texts immediately went to blank (e.g. Windows Explorer) or become excessively small (e.g. Google Chrome web address bar). I have checked that having a non-localized CJK font on system (in my case, Source Han Sans VF as I did not enable Japanese on my system) do not cause the problem, however using the font causes some complication in some software such as Microsoft Office PowerPoint, and only the Extralight version will show up.

Edit: I have installed the OTC version of Variable font SourceHanSans-VF.ttc before the testing, not the Japanese SourceHanSans-VF.otf font. The font did appear as separate language families (SC/TC/HC/JP/KR) in the Settings - Fonts, however they are not appearing as separate languages in system, only Source Han Sans VF (JP) is appearing in Control Panel - Fonts, Microsoft Office and Adobe CC 2018. This might seem to be another problem that is unrelated to this issue. Further testing with OTF only do provide the same result as the above comment.

I know this is not under the scope of Source Han Sans but this seem to be a major bug in Windows and I am afraid others will encounter the same problem. Please suggest further action and anyone to get in contact with.

@punchcutter
Copy link
Member

This is a known issue on Windows with some CFF2 variable fonts. I'll add this to the bug report.

The OTC problem sounds like another issue, but definitely something to address.

@punchcutter
Copy link
Member

Microsoft reports that there should be a fix in a future release for the text rendering crash. I have added TTF variable fonts to the builds now so you can use those to avoid this particular problem. I will leave this issue open for now since the core issue hasn't been resolved.

@NightFurySL2001
Copy link
Author

NightFurySL2001 commented Apr 29, 2021

Thank you. It is verified that the TTF (glyf) versions of variable fonts do not crash the rendering engine, including the TTC.

P/S: is it normal for Word 2016 to only show one Regular weight name but displaying ExtraLight?

@punchcutter
Copy link
Member

Word doesn't officially support variable fonts yet, but there does seem to be some kind of bug somewhere in Windows with showing the weights for the full Source Han Sans set. It will show all weights for the Subsets as well as other variable fonts, but for the full fonts only the default master is shown which is ExtraLight.

@tuo21
Copy link

tuo21 commented Jun 1, 2021

Snipaste_2021-05-26_13-39-31
Snipaste_2021-05-26_11-50-33
Snipaste_2021-05-27_12-56-49

@punchcutter
Copy link
Member

@tuo21 请先用TTF版本

@punchcutter
Copy link
Member

From https://blogs.windows.com/windows-insider/2021/06/17/releasing-windows-10-build-19043-1081-21h1-to-beta-release-preview-channels/

  • We fixed an issue that causes fontdrvhost.exe to stop working when Compact Font Format version 2 (CFF2) fonts are installed.

@tamcy
Copy link

tamcy commented Sep 18, 2021

I doubt if Microsoft has really fixed the issue.

First off, The KB5003690 preview is now listed as "expired". It cannot be installed through Windows Update now. Nor it can be downloaded manually, as we can no longer find it at Microsoft Update Catalog.

As this KB5003690 (version 1081) is a preview, it is not automatically installed on my PC. But the support page says “the latest security quality update is cumulative and contains all the addressed issues in this update”, so I suppose this update should have been superceded by some other newer update(s), like the KB5004237 (version 1110) released on July 13, 2021 which is a release quality update.

Given that
(1) I have just installed the latest cumulative update (September 14, 2021 - KB5005565), which bumps my OS build number to 19043.1237, and
(2) the build number of fontdrvhost.exe on my PC is 10.0.19041.1165, signed on 31 July 2021,
I believe my system should have already included the fix(es) mentioned in KB5004296, unless Microsoft retracted the fix for some unknown reasons.

If this is correct, the thing is, my system still crashes hardly when a CFF2 OTF font is installed and activated (e.g. chosen in Word, selected in the font list, etc.).

@punchcutter
Copy link
Member

Microsoft has not fixed it. They said it was fixed and then later said there were still problems.

@NightFurySL2001
Copy link
Author

NightFurySL2001 commented Sep 18, 2021

Source Han Sans: A Thorough Guide on How to Expose Critical Flaws in Font Implementation and Development Cycle (that even their own software doesn't correctly support it sometimes).

@punchcutter punchcutter pinned this issue Sep 18, 2021
@punchcutter
Copy link
Member

We have no control over when Microsoft fixes the problem on their end. I pinned this issue and added a note to the release download for now.

@NightFurySL2001
Copy link
Author

NightFurySL2001 commented Sep 19, 2021

I was actually joking about the issue when subset CFF fonts first came out and some Adobe software had some subset character display failure: #67, at least that was fixed in time

@punchcutter punchcutter changed the title Source Han Sans VF causes Windows 10 20H2 text rendering to blank out Source Han Sans CFF2 VF (or any CFF2 font) causes Windows 10 20H2 text rendering to blank out Apr 25, 2023
@punchcutter punchcutter changed the title Source Han Sans CFF2 VF (or any CFF2 font) causes Windows 10 20H2 text rendering to blank out Source Han Sans CFF2 VF (or any CFF2 font) causes Windows text rendering to blank out (Windows 10 and 11) Oct 28, 2023
@punchcutter
Copy link
Member

From https://support.microsoft.com/en-us/topic/october-26-2023-kb5031455-os-build-22621-2506-preview-6513c5ec-c5a2-4aaf-97f5-44c13d29e0d4

  • This update addresses an issue that affects fontdrvhost.exe. It stops responding when you use Compact Font Format version 2 (CFF2) fonts.

I tested the patch before release and it seemed to be fixed. Updating Windows 11 to this version also seems good so far with some minimal testing.

@tamcy
Copy link

tamcy commented Nov 27, 2023

After installing the Windows 11 23H2 update it is now possible for users to use the static instances in an OTF variable (full, not subset) font, in applications without formal variable font support:
shsvf

(font name for ExtraLight appears trimmed due to the 31 (or 32?) characters limitation in Windows, this is not a font issue)

22H2 is the last version of Windows 10 so this probably won't be available on Windows 10.

@punchcutter
Copy link
Member

This was fixed for Windows 10 and Windows 11

@punchcutter punchcutter unpinned this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants