| Previous | Next |
| WINCODEC_ERR_INVALIDJPEGSCANINDEX | DWRITE_E_UNEXPECTED |
DWRITE_E_FILEFORMAT
DWRITE_E_FILEFORMAT means that DirectWrite rejected the supplied font data as an invalid or unsupported font file. It is a property of the specific font resource or stream passed to DirectWrite, not a general statement that every font installed on Windows is damaged.
What to record
- The complete origin of the font: application package, local file, memory stream, network cache, or custom loader.
- The file size, digest, selected face index, container type, and the API that first returned the HRESULT.
- Whether the same bytes can be loaded in a clean test process and whether another face in the same collection succeeds.
Useful response
Replace or re-download the exact font resource and validate any custom loader before retrying. Do not silently substitute an unrelated font while treating the original input as valid: a fallback may hide a packaging or cache-corruption problem that will recur on another machine.
Microsoft: DirectWrite error codes · Microsoft: custom font sets
Looking for a different code? Search another status or error code.
