microsoft/Terminal

Incorrect DPI scaling for font preview in shell properties dialog

Open

#1 877 ouverte le 8 juil. 2019

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)C++ (3 212 forks)batch import
Area-UserInterfaceHelp WantedIssue-BugProduct-Conhost

Métriques du dépôt

Stars
 (35 764 stars)
Métriques de merge PR
 (Merge moyen 27j 19h) (24 PRs mergées en 30 j)

Description

Environment

Windows Build Number: 10.0.18362.207
  • This issue relates to the built-in conhost.
  • Tested on a single monitor system at 200% DPI.

Description

The font preview shown on the Fonts tab or Colours tab doesn't use the correct DPI scaling when accessed via a shortcut's property dialog. However, the same font preview shown on a console window's property dialog does use the correct scaling.

Comparison Screenshot

Steps to reproduce

  1. Set the system DPI scaling to be higher than 100% (I use 200%). Sign in and out if changing.
  2. Find or create a shortcut to a console app (e.g. Command Prompt).
  3. Open the shortcut's property dialog and go to the Fonts tab or Colours tab.
  4. See that the font preview is not correctly scaled for the DPI.
  5. Run the console app and open the console window's property dialog.
  6. Go to the Fonts tab or Colours tab, and see that the font preview is correctly scaled for the DPI.

Guide contributeur