When the technology (SCI_SETTECHNOLOGY) is set to SC_TECHNOLOGY_DIRECTWRITE, the WM_PRINTCLIENT implementation (ScintillaWin::FullPaintDC) is broken because it doesn't copy anything into the provided device context (dc).
A possible workaround is to use SC_TECHNOLOGY_DIRECTWRITEDC. However, WM_PRINTCLIENT should work with SC_TECHNOLOGY_DIRECTWRITE as well. A possible solution would be to (temporary) use the code path for SC_TECHNOLOGY_DIRECTWRITEDC in the WM_PRINTCLIENT message handler, in case the technology is set to SC_TECHNOLOGY_DIRECTWRITE.
Seems reasonable to use
SC_TECHNOLOGY_DIRECTWRITEDCimplementation. SciTE doesn't callWM_PRINTCLIENTso I'll leave this to someone more connected to that.