CreateFontFaceFromHDC() failed

When i run my project,this error occured as:

DirectWrite: CreateFontFaceFromHDC() failed (指示输入文件 (例如字体文件) 中的错误。) for QFontDef(Family="courier", poin
tsize=9, pixelsize=13, styleHint=5, weight=50, stretch=100, hintingPreference=0) LOGFONT("courier", lfWidth=0, lfHeight=
-13) dpi=96

I dont know how to fix it

As this appears related to Qt, I’ve moved to the visualisation category for the moment.

could be by upgrading to a more recent Qt 5.X version. Which version are you currently using?

u r right.I should use a higher version than 5.12.