Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle text scaling for HiDPI environments/DPI changes #204

Open
compnerd opened this issue Oct 14, 2020 · 0 comments
Open

Handle text scaling for HiDPI environments/DPI changes #204

compnerd opened this issue Oct 14, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@compnerd
Copy link
Owner

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.

@compnerd compnerd added enhancement New feature or request help wanted Extra attention is needed labels Oct 14, 2020
@compnerd compnerd changed the title Handle text scaling for HiDPI environments Handle text scaling for HiDPI environments/DPI changes Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant