Incorrect define of DWRITE_HIT_TEST_METRICS structure in dwrite.h (line 498) cause SIGSEGV.
See the bug report at https://sourceforge.net/p/scintilla/bugs/2026/, thanks Neil for finding it out.
the BOOL isTrimmed field is missing, the whole definition from https://docs.microsoft.com/en-us/windows/desktop/api/dwrite/ns-dwrite-dwrite_hit_test_metrics is:
struct DWRITE_HIT_TEST_METRICS {
UINT32 textPosition;
UINT32 length;
FLOAT left;
FLOAT top;
FLOAT width;
FLOAT height;
UINT32 bidiLevel;
BOOL isText;
BOOL isTrimmed;
};
Fixed on master.