Skip to content

Handle text scaling for HiDPI environments/DPI changes #204

Open
@compnerd

Description

@compnerd

Although views currently scale according to the DPI settings for the monitor, the text currently does not. The TraitCollection type has the necessary information which needs to be wired through to FontMetrics, FontDescriptor, and Font. The Window type conforms to TraitEnvironment and will send the traitCollectionDidChange(_:) which allows the responder chain to react and re-size fonts on views conforming to ContentSizeCategoryAdjusting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions