From 2508efdd6ec2256a743a1509e2ad2fc1dfeebb51 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Tue, 13 Aug 2019 22:14:23 +0200 Subject: [PATCH] Initialize wxMemoryDC with a default font --- src/msw/dcmemory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/dcmemory.cpp b/src/msw/dcmemory.cpp index c398b2c162..37b0a5aced 100644 --- a/src/msw/dcmemory.cpp +++ b/src/msw/dcmemory.cpp @@ -70,6 +70,7 @@ void wxMemoryDCImpl::Init() { SetBrush(*wxWHITE_BRUSH); SetPen(*wxBLACK_PEN); + SetFont(*wxNORMAL_FONT); // the background mode is only used for text background and is set in // DrawText() to OPAQUE as required, otherwise always TRANSPARENT