| Previous | Next |
| DWRITE_E_UNEXPECTED | DWRITE_E_FILENOTFOUND |
DWRITE_E_NOFONT
DWRITE_E_NOFONT means that the requested font could not be found in the font collection used by the call. The decisive fact is the collection object and its contents; a family that appears in another process or in the Windows Fonts folder is not automatically present in an application’s custom collection.
What to inspect
- The exact family name, locale name, weight, stretch, style, and the collection from which the lookup is performed.
- Whether the application expected a system font, an installed private font, or a bundled custom font file.
- Whether a recent font installation, removal, or update made a cached collection obsolete.
Correct recovery
Use an explicit fallback policy for missing families, but separately report the intended family and collection source. Refresh the system collection when the process is allowed to observe font changes; for custom collections, verify that every expected file was enumerated before creating the layout.
Microsoft: GetSystemFontCollection · Microsoft: custom font collections
Looking for a different code? Search another status or error code.