Skip to content

PerMonitorDpi scaling #50

Open
Open
@imekon

Description

@imekon

The code for scaling fonts in a WinForms user control makes the overall size way bigger than the scaling factor. Enter a factor of 1.25, you might get 1.66 as the actual size.

Control.Scale sets the size of the child controls correctly, as per the scaling factor. However the fonts are still their original (small) size. Scaling the fonts doesn't give a correct overall ratio, and can mess up layout controls.

What's the correct way to get scaled fonts and controls to match the scalingFactor?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions