Skip to content

Need to redesign GetSystemDpi #451

Open
@chucker

Description

@chucker

SvgDocument currently initializes with a PointsPerInch variable. This is apparently used as a scale factor, e.g. in Ascent().

However, modern systems have no notion of a system DPI — each monitor can have a different DPI (in Windows, this started to be supported with 8.1), and this is increasingly a common occurrence: you may have a laptop with an internal display at 240 ppi (with the Windows UI "scaled to 250%"), and an external display at 96 ppi, for example.

It's not fully clear to me why these method calls exist at all, and if they are necessary, we either need a hardcoded fallback, a "default" DPI, or we need the DPI for the respective "current" screen (which is currently difficult to do in a cross-platform manner).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions