Critical Bug: August .NET Framework Updates Break WPF Printing and PDF Export
Microsoft's August 2026 .NET Framework cumulative updates are causing System.IO.FileFormatException errors in WPF applications, breaking printing and PDF export for certain fonts. Learn about the impact and temporary workaround.

Developers leveraging the Windows Presentation Foundation (WPF) framework for their desktop applications are currently facing a significant hurdle. Recent cumulative updates for the .NET Framework, released as part of Microsoft's August 2026 Patch Tuesday, have introduced a critical regression. This bug is causing WPF applications to fail when attempting to print or export content to PDF/XPS formats, particularly when utilizing specific fonts like Calibri.
The issue, which manifests as a System.IO.FileFormatException, has left many business applications unable to perform essential document generation and printing tasks. While Microsoft is actively investigating and working on a permanent fix, a temporary workaround has been provided, albeit with a cautionary note regarding security implications. This post delves into the specifics of this breaking change, its root cause, affected platforms, and the immediate steps developers can take.
1. The Impact of the August 2026 .NET Framework Updates
The August 2026 cumulative updates for the .NET Framework were intended to deliver crucial security and reliability improvements. However, they inadvertently introduced a severe regression affecting applications built with Windows Presentation Foundation (WPF). Specifically, WPF applications that rely on font subsetting for printing or generating PDF/XPS content are encountering a System.IO.FileFormatException.
This error typically occurs when the application tries to process certain fonts, with Calibri being prominently cited as an affected font, alongside others such as Cambria, Constantia, and Corbel. The symptom is a complete failure of printing or document export functionality, often presenting an error message indicating that a font file 'does not conform to the expected file format specification.'
The problem is not with the fonts themselves being corrupt, as Windows can still load and display them normally. Instead, the failure is triggered specifically when WPF attempts to create a subset of the font for XPS or printing, a process that was altered by the recent updates. This impacts a wide range of applications, from general business software to specialized tools that depend on accurate document output. The affected updates include, but are not limited to, KB5120708 for Windows 11 25H2 and Windows Server 2025, and KB5120705 for Windows Server 2022, as well as corresponding August .NET security updates across various Windows client and server platforms.
2. Unpacking the Root Cause: WPF Font Subsetting Regression
Microsoft has confirmed that the underlying cause of this issue is a regression within the WPF TrueType font subsetter. The specific component affected is System.Windows.Media.GlyphTypeface.ComputeSubset, which now incorrectly throws a FileFormatException when processing the aforementioned fonts. This change was a consequence of security enhancements introduced in the August 2026 updates, aimed at addressing integer overflow vulnerabilities (CVE-2026-62886 and CVE-2026-62897).
The security updates included bounds validation within the font processing logic. While intended to fortify the framework against potential exploits, this validation appears to be overly strict or misconfigured for certain legitimate font structures, leading to the erroneous `FileFormatException`. This means that fonts that were previously considered valid and functioned correctly are now being rejected by the updated WPF font subsetter. The regression affects not only stock Windows fonts but also some older third-party fonts that previously worked without issue.
The scope of affected platforms is broad, encompassing various versions of Windows client releases, including Windows 10 and Windows 11, and Windows Server editions from 2012 up to 2025. This widespread impact underscores the importance of a swift and stable resolution from Microsoft, as many enterprise applications rely heavily on these printing and export functionalities for daily operations.
3. Temporary Workaround and Associated Risks
Recognizing the critical nature of this bug, Microsoft has provided a temporary workaround for affected developers and users. The solution involves enabling a specific AppContext switch in the application's configuration file. Developers can mitigate the issue by adding the Switch.MS.Internal.TtfDelta.DisableCmapAndSbitOverflowProtection=true setting within the <AppContextSwitchOverrides> element under the <runtime> section of their application's .config file.
Here's how the configuration snippet looks:
<configuration>
<runtime>
<AppContextSwitchOverrides value="Switch.MS.Internal.TtfDelta.DisableCmapAndSbitOverflowProtection=true"/>
</runtime>
</configuration>4. Important Security Considerations for the Workaround
While this workaround can restore critical printing and PDF export functionality, it comes with a significant caveat: it disables the security protections introduced by the August 2026 .NET Framework updates. These protections were put in place to address several vulnerabilities, including remote code execution and elevation of privilege flaws (e.g., CVE-2026-62886, CVE-2026-62897, CVE-2026-70354, CVE-2026-62902).
By applying the workaround, applications may become exposed to the very security risks that the August updates aimed to mitigate. Microsoft explicitly states that this workaround should only be used as a temporary measure and only when absolutely necessary to address the printing issue. Developers and IT administrators must carefully weigh the immediate need for printing functionality against the increased security exposure. It is crucial to monitor Microsoft's official channels for updates on a permanent fix and to remove the workaround as soon as a corrected update is available. Uninstalling the entire security update is generally not recommended due to the significant security implications.
Comparison Overview
| Aspect | Before August 2026 Update | After August 2026 Update |
|---|---|---|
| Printing/PDF Export | Generally functional with all fonts | Fails for certain fonts (e.g., Calibri) with FileFormatException |
| Font Subsetting | System.Windows.Media.GlyphTypeface.ComputeSubset operates normally | System.Windows.Media.GlyphTypeface.ComputeSubset throws FileFormatException due to regression |
| Security Posture | Protected by previous security measures | Enhanced security against integer overflow (CVE-2026-62886, CVE-2026-62897) |
| Workaround Availability | Not applicable | AppContext switch available, but disables new security protections |
| Affected Fonts | All fonts supported | Calibri, Cambria, Constantia, Corbel, and potentially other older third-party fonts affected |
Frequently Asked Questions (FAQ)
Q: What is the primary issue caused by the August 2026 .NET Framework updates?
The primary issue is that WPF applications may fail to print or export to PDF/XPS formats, throwing a System.IO.FileFormatException. This occurs when the applications use certain fonts like Calibri, Cambria, Constantia, or Corbel.
Q: Which .NET Framework updates are causing this problem?
The problem is caused by cumulative updates released as part of Microsoft's August 2026 Patch Tuesday for the .NET Framework. Specific examples include KB5120708 and KB5120705, depending on the Windows version.
Q: What is the technical reason behind the printing failures?
The issue stems from a regression in the WPF TrueType font subsetter. A security enhancement introduced in the updates, intended to address integer overflow vulnerabilities, has caused System.Windows.Media.GlyphTypeface.ComputeSubset to incorrectly throw a FileFormatException for certain fonts.
Q: Is there a temporary solution for developers?
Yes, Microsoft has provided a temporary workaround. Developers can enable the Switch.MS.Internal.TtfDelta.DisableCmapAndSbitOverflowProtection AppContext switch in their application's .config file.
Q: Are there any risks associated with applying the workaround?
Yes, enabling the workaround disables security protections that were introduced in the August 2026 .NET Framework updates. This could potentially expose the system to vulnerabilities that those updates were designed to fix, including remote code execution flaws. Microsoft recommends using it only as a temporary measure.
Q: Which Windows versions are affected by this bug?
The issue affects a wide range of Windows client releases, including Windows 10 and Windows 11, as well as Windows Server editions from Windows Server 2012 up to Windows Server 2025.
Try Our Developer Utilities
Simplify your engineering workflows with our free browser-native tools: