| Previous | Next |
| DWRITE_E_FLOWDIRECTIONCONFLICTS | DWRITE_E_REMOTEFONT |
DWRITE_E_NOCOLOR
DWRITE_E_NOCOLOR is not necessarily a rendering failure. DirectWrite returns it when a requested glyph run has no color-glyph representation in any of the image formats requested by the caller. The documented fallback is to render the base glyph run as ordinary monochrome text.
Why it occurs
- The selected font may have no color glyphs for the requested characters.
- The font can contain color glyphs but not in a format the application included in its supported image-format mask.
- A mixed run can contain both color-capable and monochrome glyphs, so rendering should remain per-run rather than assume every character is color data.
Correct handling
Handle this HRESULT as a normal fallback result when monochrome output is acceptable. Only report it as a product error when color glyphs are a stated requirement, and then record the font, glyphs, requested formats, and DirectWrite version before changing the rendering policy.
Looking for a different code? Search another status or error code.