Skip to content

User-scope installed fonts don't persist through logout #6535

Description

@lemoncove

Relevant area(s)

WinGet CLI

Relevant command(s)

winget install

Brief description of your issue

Immediately after installation, a font installed through WinGet in user scope is visible to applications, but is no longer visible after a logout or restart. When I say visible, I mean:

  1. Applications (e.g. Notepad) recognize and list the font.
  2. The Settings → Personalization → Fonts menu lists the font.
  3. winget font list lists the font.

After a logout or restart, the font is not listed anywhere above. However:

  1. The font still exists on disk (scoped by package name and version, in %localappdata%\Microsoft\Windows\Fonts\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe).
  2. The font is still listed in winget font list --details.
  3. Attempting to winget install the font again will result in WinGet claiming the font is already installed.
  4. Registry entries still exist for the font (scoped by package name and version, in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe).

The font can be made to "reappear" via AddFontResource from the Windows GDI, but it will "disappear" following a second logout or restart. Installing the same font file manually (e.g. right click → Install) has the font persist, even through logouts or restarts.

Installing the package with --scope machine works as expected.

Steps to reproduce

  1. Install ryanoasis.CaskaydiaCove:
winget install --exact --id ryanoasis.CaskaydiaCove --source winget-font
  1. OR install any font from winget-extras, here Google.AtkinsonHyperlegible.Next:
winget source add --name winget-extras --type Microsoft.PreIndexed.Package --arg https://winget.tplant.com.au/cache
winget install --exact --id Google.AtkinsonHyperlegible.Next --source winget-extras
  1. OR install any font from a local manifest.
  2. Verify the font is listed in Settings → Personalization → Fonts, OR open Notepad and switch the font to the newly-installed one in the Format → Font menu.
  3. Log out and log back in.
  4. Notice that the font is no longer listed in Settings → Personalization → Fonts, OR open Notepad again and notice that the font fails to load and is not visible in the Format → Font menu.

Expected behavior

The font should be listed in the Settings → Personalization → Fonts menu and load in Notepad.

Actual behavior

The font is no longer listed in the Settings → Personalization → Fonts menu and does not load in Notepad.

Environment

Windows Package Manager v1.29.290
Windows: Windows.Desktop v10.0.19045.6466
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.290.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-InstallIssue related to WinGet InstallIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIssue needs to be triaged

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions