| Previous | Next |
| DWRITE_E_FILEACCESS | DWRITE_E_ALREADYREGISTERED |
DWRITE_E_FONTCOLLECTIONOBSOLETE
DWRITE_E_FONTCOLLECTIONOBSOLETE reports that a font collection no longer represents the current system state. This can happen after fonts are installed, removed, or otherwise changed while a process retains a collection created earlier.
Refresh the right object
- For the system collection, request it again with update checking enabled instead of continuing to use a cached collection indefinitely.
- For an application-defined collection, re-enumerate its declared source files and rebuild the collection through the same loader contract.
- Keep text layouts and font faces derived from the old collection separate from newly created objects; do not assume an old pointer becomes current by itself.
Good diagnostic data
Log when the collection was obtained, whether it is system or custom, and what changed between the successful and failing lookup. The code does not identify a bad glyph or damaged render target; it points to stale font-discovery state.
Microsoft: GetSystemFontCollection · Microsoft: custom font collections
Looking for a different code? Search another status or error code.