Jack Bowman
Jack Bowman

Reputation: 11

Why does my App window shrink when deployed?

My MFC app written with VS2019 displays correctly at 1920x1080, but when I deploy it to a 1920x1080 laptop it shows up at about 1/4 size. I have toggled DPI Awareness, but without effect. When I deploy it on a laptop that already has VS2019 on it, it displays correctly.

Upvotes: 0

Views: 45

Answers (1)

Jack Bowman
Jack Bowman

Reputation: 11

Problem solved. I had been using a font that didn't exist on the target machines. It is 20 points high, and the default font is 8 points high. MFC sizes the dialog to fit the font size. All I had to do was copy and install the font file. Thanks for your thoughts and suggestions. For what it is worth, in the past I have always used a 3rd party deployment tool that packaged in the fonts, and now I have learned that the Visual Studio supplied tool doesn't do that.

Upvotes: 1

Related Questions