PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.36k stars 757 forks source link

Command Prompt Font Fallbacks To Vector If Default Was Raster #2216

Closed imshvc closed 6 months ago

imshvc commented 6 months ago

Prerequisites

Steps to reproduce

  1. Download the cozette.fon.zip font and install it.
  2. Set the font image
  3. Open a new Command Prompt window and simply run ssh

My assumption is that this has to do with the SetConsoleMode function

Expected behavior

Font should not have changed from the raster.

Actual behavior

Font fallbacks to TrueType (vector) alternative.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.19041.2364
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.2364
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

Visuals

https://github.com/PowerShell/Win32-OpenSSH/assets/102489121/0f059354-7725-4da3-95e8-4b1d1d64e0fe

maertendMSFT commented 6 months ago

Do you see this error when using the latest version?

imshvc commented 6 months ago

@maertendMSFT My apology, it turns out that the problem is related with the font itself - I'm still in the process of debugging the font format as it was generated using my tool. Closing the issue.