--- nono/wx/wxtextpanel.cpp 2026/04/29 17:04:28 1.1 +++ nono/wx/wxtextpanel.cpp 2026/04/29 17:04:33 1.1.1.2 @@ -90,10 +90,7 @@ WXTextPanel::AllocFont(fontsize_t fontsi base = builtin_cgrom + 0x3d000; break; default: - fprintf(stderr, "%s:%d fontsize=%d\n", - __FILE__, __LINE__, fontsize); - assert(false); - __unreachable(); + assertmsg(0, "fontsize=%d", fontsize); } // フォントの行ストライド[byte] @@ -200,7 +197,7 @@ WXTextPanel::DrawChar1(wxDC& dc, int px, { wxBitmap **glyph; - assert(code < 0x80); + assertmsg(code < 0x80, "code=0x%x", code); // ボールドかどうかでテーブルが別 if ((attr & TA::Em)) {