public DebugRenderer(ComPtr <IDXGISurface1> surface) { _surface = new ComPtr <IDXGISurface1>(surface); //const string fontName = "Segoe UI Light"; const string fontName = "Courier"; fixed(char *pFont = fontName) { _font = GDI32.CreateFontW(16, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, pFont); } _brush = GDI32.CreateSolidBrush(new COLORREF(50, 50, 50)); }