DX_THREAD_SAFEを有効にした状態でDrawFormatString2ToHandleを使用すると、正常なフォントハンドルを渡しても返り値が-1になります。
原因と思われる箇所を確認したところ、DxGateway.cpp内でFontHandleとEdgeColorの引数の順番が逆になっていました。
該当箇所は以下の部分です。
7711行目:DrawFormatString2ToHandle関数内
Result = NS_DrawStringToHandle( x, y, String, Color, EdgeColor, FontHandle ) ;
FontHandleとEdgeColorの順番が逆になっています。
同様に、
7725行目:DrawFormatVString2ToHandle関数内
Result = NS_DrawVStringToHandle( x, y, String, Color, EdgeColor, FontHandle ) ;
こちらもFontHandleとEdgeColorの順番が逆になっています。
お手すきの際にご確認いただければ幸いです。