Customized fonts not working #21527

Closed
opened 2026-01-31 07:47:12 +00:00 by claunia · 17 comments
Owner

Originally created by @ShaneLee-9 on GitHub (Apr 15, 2024).

Windows Terminal version

1.19.10821.0

Windows build number

10.0.22631.3447

Other Software

No response

Steps to reproduce

Set the font, choose any one of the fonts

Expected Behavior

No response

Actual Behavior

PixPin_2024-04-15_17-12-36
PixPin_2024-04-15_17-13-09
PixPin_2024-04-15_17-14-28
I'm warned that I can't find the "D2Coding" font, but I used this font a week ago and it has now been removed from my system.

As you can see, I can't change the font whether I set it via the GUI or change it via the settings.json configuration file.

I tried reinstalling the lower version 1.19.10573.0 and it still has the above problem.

Originally created by @ShaneLee-9 on GitHub (Apr 15, 2024). ### Windows Terminal version 1.19.10821.0 ### Windows build number 10.0.22631.3447 ### Other Software _No response_ ### Steps to reproduce Set the font, choose any one of the fonts ### Expected Behavior _No response_ ### Actual Behavior ![PixPin_2024-04-15_17-12-36](https://github.com/microsoft/terminal/assets/30720287/85d225af-d1b0-48d8-8d84-f3f1ea29acab) ![PixPin_2024-04-15_17-13-09](https://github.com/microsoft/terminal/assets/30720287/a1a0266b-a77b-4d85-b904-40ee11b86b50) ![PixPin_2024-04-15_17-14-28](https://github.com/microsoft/terminal/assets/30720287/d6f7dd05-654c-4312-9b44-9ea878b2b659) I'm warned that I can't find the "D2Coding" font, but I used this font a week ago and it has now been removed from my system. As you can see, I can't change the font whether I set it via the GUI or change it via the settings.json configuration file. I tried reinstalling the lower version 1.19.10573.0 and it still has the above problem.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:47:13 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 15, 2024):

Did you install that font for all users? Or just for your current user/? We've had persistent problems with fonts that aren't installed for all users 🤷

@zadjii-msft commented on GitHub (Apr 15, 2024): Did you install that font for all users? Or just for your current user/? We've had persistent problems with fonts that aren't installed for all users 🤷
Author
Owner

@inglepriyanka148867 commented on GitHub (Apr 16, 2024):

Ensure the custom fonts are correctly installed, restart the application, and verify font configuration settings.

@inglepriyanka148867 commented on GitHub (Apr 16, 2024): Ensure the custom fonts are correctly installed, restart the application, and verify font configuration settings.
Author
Owner

@ShaneLee-9 commented on GitHub (Apr 16, 2024):

Did you install that font for all users? Or just for your current user/? We've had persistent problems with fonts that aren't installed for all users 🤷

The problem I'm having is that I've selected font A, but Windows Terminal tells me can't find font B!

@ShaneLee-9 commented on GitHub (Apr 16, 2024): > Did you install that font for all users? Or just for your current user/? We've had persistent problems with fonts that aren't installed for all users 🤷 The problem I'm having is that I've selected font A, but Windows Terminal tells me can't find font B!
Author
Owner

@zadjii-msft commented on GitHub (Apr 16, 2024):

Could you share your settings.json file/?

@zadjii-msft commented on GitHub (Apr 16, 2024): Could you share your [settings.json file](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file)/?
Author
Owner

@lhecker commented on GitHub (Apr 16, 2024):

@zadjii-msft I believe this occurs because they're using DxRenderer. It gets the font family from the font file here: 39f90921fe/src/renderer/dx/DxFontInfo.cpp (L257-L313)
The warning pops up if that family name does not match the font name in the settings.

This issue has been solved in two ways:

  • DxRenderer does not exist anymore. You can only use AtlasEngine in the latest builds.
  • #16821 refactored the way we emit renderer warnings, so this can't happen anymore.

@ShaneLee-9 As a workaround you can simply use AtlasEngine until 1.21 is released.

@lhecker commented on GitHub (Apr 16, 2024): @zadjii-msft I believe this occurs because they're using DxRenderer. It gets the font family from the font file here: https://github.com/microsoft/terminal/blob/39f90921fe68848112165b9258ecb1fb45c85dcc/src/renderer/dx/DxFontInfo.cpp#L257-L313 The warning pops up if that family name does not match the font name in the settings. This issue has been solved in two ways: * DxRenderer does not exist anymore. You can only use AtlasEngine in the latest builds. * #16821 refactored the way we emit renderer warnings, so this can't happen anymore. @ShaneLee-9 As a workaround you can simply use AtlasEngine until 1.21 is released.
Author
Owner

@ShaneLee-9 commented on GitHub (Apr 17, 2024):

Could you share your settings.json file/?

Hi, this is my settings.json

settings.json

@ShaneLee-9 commented on GitHub (Apr 17, 2024): > Could you share your [settings.json file](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file)/? Hi, this is my settings.json [settings.json](https://github.com/microsoft/terminal/files/15008806/settings.json)
Author
Owner

@lhecker commented on GitHub (Apr 17, 2024):

Now that you have AtlasEngine enabled, does the error go away? If it still happens for some reason, please feel free to temporarily use our Canary build (our nightly version): https://aka.ms/terminal-canary-installer

@lhecker commented on GitHub (Apr 17, 2024): Now that you have AtlasEngine enabled, does the error go away? If it still happens for some reason, please feel free to temporarily use our Canary build (our nightly version): https://aka.ms/terminal-canary-installer
Author
Owner

@ShaneLee-9 commented on GitHub (Apr 18, 2024):

Now that you have AtlasEngine enabled, does the error go away? If it still happens for some reason, please feel free to temporarily use our Canary build (our nightly version): https://aka.ms/terminal-canary-installer

AtlasEngine enabled, but the problem persists!
I installed the Canary version (our nightly version)
1
2
3

@ShaneLee-9 commented on GitHub (Apr 18, 2024): > Now that you have AtlasEngine enabled, does the error go away? If it still happens for some reason, please feel free to temporarily use our Canary build (our nightly version): https://aka.ms/terminal-canary-installer AtlasEngine enabled, but the problem persists! I installed the Canary version (our nightly version) ![1](https://github.com/microsoft/terminal/assets/30720287/3c294593-b0dd-49bf-bb2f-e6cf6009d838) ![2](https://github.com/microsoft/terminal/assets/30720287/29a87f8b-2440-42b6-8168-e978e6243f80) ![3](https://github.com/microsoft/terminal/assets/30720287/b1768e64-6f64-40c2-8628-558e5549d86a)
Author
Owner

@lhecker commented on GitHub (Apr 18, 2024):

Hmm... I see, that's surprising.

Can you please provide a link to the font so I can download it?

@lhecker commented on GitHub (Apr 18, 2024): Hmm... I see, that's surprising. Can you please provide a link to the font so I can download it?
Author
Owner

@ShaneLee-9 commented on GitHub (Apr 19, 2024):

Hmm... I see, that's surprising.

Can you please provide a link to the font so I can download it?

https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/D2Coding.zip

@ShaneLee-9 commented on GitHub (Apr 19, 2024): > Hmm... I see, that's surprising. > > Can you please provide a link to the font so I can download it? https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/D2Coding.zip
Author
Owner

@lhecker commented on GitHub (Apr 19, 2024):

Are you certain that this is the exact same font that you're using? It only contains an US English name which is "D2CodingLigature Nerd Font":
image

There's no mention of "FragmentMono". Do you have a different font installed which is called "FragmentMono"? If so, can you provide a download link for that font as well? I know that Fragment Mono exists, but there's no official "Nerd Font" variant for it.

"D2CodingLigature Nerd Font" does properly show up in Windows Terminal 1.19.10821.0 for me:
image

Selecting it doesn't result in any error messages for me either. If I manually enter "FragmentMono Nerd Font" the correct font name shows up in the error message:
image

@lhecker commented on GitHub (Apr 19, 2024): Are you certain that this is the exact same font that you're using? It only contains an US English name which is "D2CodingLigature Nerd Font": ![image](https://github.com/microsoft/terminal/assets/2256941/b251bf67-2897-44b5-881b-7ff044cf680b) There's no mention of "FragmentMono". Do you have a different font installed which is called "FragmentMono"? If so, can you provide a download link for that font as well? I know that [Fragment Mono](https://github.com/weiweihuanghuang/fragment-mono) exists, but there's no official "Nerd Font" variant for it. "D2CodingLigature Nerd Font" does properly show up in Windows Terminal 1.19.10821.0 for me: ![image](https://github.com/microsoft/terminal/assets/2256941/b325f48f-3de0-452f-bdeb-112c3efec0d5) Selecting it doesn't result in any error messages for me either. If I manually enter "FragmentMono Nerd Font" the correct font name shows up in the error message: ![image](https://github.com/microsoft/terminal/assets/2256941/00c11489-a765-477a-9339-5a4f66dc4925)
Author
Owner

@ShaneLee-9 commented on GitHub (Apr 21, 2024):

Are you certain that this is the exact same font that you're using? It only contains an US English name which is "D2CodingLigature Nerd Font": image

There's no mention of "FragmentMono". Do you have a different font installed which is called "FragmentMono"? If so, can you provide a download link for that font as well? I know that Fragment Mono exists, but there's no official "Nerd Font" variant for it.

"D2CodingLigature Nerd Font" does properly show up in Windows Terminal 1.19.10821.0 for me: image

Selecting it doesn't result in any error messages for me either. If I manually enter "FragmentMono Nerd Font" the correct font name shows up in the error message: image

The root cause of my problem is that I installed the font "D2CodingLigature Nerd Font Mono" about a week ago. One day I removed "D2CodingLigature Nerd Font Mono" from my computer and installed "FragmentMono Nerd Font". Then I wanted to change my Terminal font to "FragmentMono Nerd Font". Termina then shows the above error message. It actually can't find the "D2CodingLigature Nerd Font Mono" that I used and deleted. After that, no matter what fonts I select in Terminal's settings, it will report that it can't find "D2CodingLigature Nerd Font Mono".

PixPin_2024-04-21_16-09-55

@ShaneLee-9 commented on GitHub (Apr 21, 2024): > Are you certain that this is the exact same font that you're using? It only contains an US English name which is "D2CodingLigature Nerd Font": ![image](https://private-user-images.githubusercontent.com/2256941/323962483-b251bf67-2897-44b5-881b-7ff044cf680b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM2ODY1NzgsIm5iZiI6MTcxMzY4NjI3OCwicGF0aCI6Ii8yMjU2OTQxLzMyMzk2MjQ4My1iMjUxYmY2Ny0yODk3LTQ0YjUtODgxYi03ZmYwNDRjZjY4MGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MjFUMDc1NzU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Zjk4NGYxNWE4ZWEzNjIwZTZkZGZhYzU1YThmMmM1ZWQ1MDJlMDM2NDQwNTY5ZWJhZGIyMmM3MWExMzA2ZTgyMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.dZKX_rLH0SV-aAou7gFkUY_a7mGxL_F4VKPU-u30oBk) > > There's no mention of "FragmentMono". Do you have a different font installed which is called "FragmentMono"? If so, can you provide a download link for that font as well? I know that [Fragment Mono](https://github.com/weiweihuanghuang/fragment-mono) exists, but there's no official "Nerd Font" variant for it. > > "D2CodingLigature Nerd Font" does properly show up in Windows Terminal 1.19.10821.0 for me: ![image](https://private-user-images.githubusercontent.com/2256941/323963289-b325f48f-3de0-452f-bdeb-112c3efec0d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM2ODY1NzgsIm5iZiI6MTcxMzY4NjI3OCwicGF0aCI6Ii8yMjU2OTQxLzMyMzk2MzI4OS1iMzI1ZjQ4Zi0zZGUwLTQ1MmYtYmRlYi0xMTJjM2VmZWMwZDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MjFUMDc1NzU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzAwZTg3ZjMxNDNmMDIwYzNhMTNmN2QzZDBmZWMyMjVmZGQ5ZTVkYzAxYTNlYTFjN2Y0ZTRjZThhODExNWE2ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.dD4ujqdFTMMrhzH_UUEoUYJRC9QAvpz5HBVgmXJ23nQ) > > Selecting it doesn't result in any error messages for me either. If I manually enter "FragmentMono Nerd Font" the correct font name shows up in the error message: ![image](https://private-user-images.githubusercontent.com/2256941/323963865-00c11489-a765-477a-9339-5a4f66dc4925.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM2ODY1NzgsIm5iZiI6MTcxMzY4NjI3OCwicGF0aCI6Ii8yMjU2OTQxLzMyMzk2Mzg2NS0wMGMxMTQ4OS1hNzY1LTQ3N2EtOTMzOS01YTRmNjZkYzQ5MjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MjFUMDc1NzU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzNlOTczZTdiNTM0ZWQ1Yjg5NzBkYTQ4OTE0YWRiYzdjNGM2ZmU5MTM0NzJhYzVmYTdjYWNhY2E3MTc5ODcwOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.upp9LbLfQjptw3HN5VP3aFqIx_aA4uW8HxeDT2d5AVo) The root cause of my problem is that I installed the font "D2CodingLigature Nerd Font Mono" about a week ago. One day I removed "D2CodingLigature Nerd Font Mono" from my computer and installed "FragmentMono Nerd Font". Then I wanted to change my Terminal font to "FragmentMono Nerd Font". Termina then shows the above error message. It actually can't find the "D2CodingLigature Nerd Font Mono" that I used and deleted. After that, no matter what fonts I select in Terminal's settings, it will report that it can't find "D2CodingLigature Nerd Font Mono". ![PixPin_2024-04-21_16-09-55](https://github.com/microsoft/terminal/assets/30720287/4d1f5a58-1be8-44f8-843f-9e0b90472286)
Author
Owner

@lhecker commented on GitHub (Apr 21, 2024):

Oh no. I hope this doesn't mean that your font cache is corrupted. 😣

Can you please try this series of steps? My hope is that this brings the cache back into a good state:

  • Open %LOCALAPPDATA%\Microsoft\Windows\Fonts and check if the folder is empty. If it's not empty, open the Fonts control panel (search for "fonts" in the start menu):
    image
    Find and delete each corresponding font until the %LOCALAPPDATA%\Microsoft\Windows\Fonts folder is empty.
  • Download the D2CodingLigature font (https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/D2Coding.zip) again and install it for all users.
  • Uninstall both, your "D2CodingLigature Nerd Font" and "FragmentMono Nerd Font" fonts simultaneously.

Afterwards, reboot your PC and try installing the "D2CodingLigature Nerd Font" (for all users).

@lhecker commented on GitHub (Apr 21, 2024): Oh no. I hope this doesn't mean that your font cache is corrupted. 😣 Can you please try this series of steps? My hope is that this brings the cache back into a good state: * Open `%LOCALAPPDATA%\Microsoft\Windows\Fonts` and check if the folder is empty. If it's not empty, open the Fonts control panel (search for "fonts" in the start menu): ![image](https://github.com/microsoft/terminal/assets/2256941/d06261a7-b041-4326-93e7-148a1427493e) Find and delete each corresponding font until the `%LOCALAPPDATA%\Microsoft\Windows\Fonts` folder is empty. * Download the D2CodingLigature font (https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/D2Coding.zip) again and install it for **all users**. * Uninstall both, your "D2CodingLigature Nerd Font" and "FragmentMono Nerd Font" fonts simultaneously. Afterwards, reboot your PC and try installing the "D2CodingLigature Nerd Font" (for all users).
Author
Owner

@ShaneLee-9 commented on GitHub (Apr 22, 2024):

Oh no. I hope this doesn't mean that your font cache is corrupted. 😣

Can you please try this series of steps? My hope is that this brings the cache back into a good state:

  • Open %LOCALAPPDATA%\Microsoft\Windows\Fonts and check if the folder is empty. If it's not empty, open the Fonts control panel (search for "fonts" in the start menu):
    image
    Find and delete each corresponding font until the %LOCALAPPDATA%\Microsoft\Windows\Fonts folder is empty.
  • Download the D2CodingLigature font (https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/D2Coding.zip) again and install it for all users.
  • Uninstall both, your "D2CodingLigature Nerd Font" and "FragmentMono Nerd Font" fonts simultaneously.

Afterwards, reboot your PC and try installing the "D2CodingLigature Nerd Font" (for all users).

I tried reinstalling "D2CodingLigature Nerd Font Mono" and it didn't pop up again, but I have a new problem: I can't select any font. It looks like some program is locking up my Terminal fonts!
PixPin_2024-04-22_16-00-56

@ShaneLee-9 commented on GitHub (Apr 22, 2024): > Oh no. I hope this doesn't mean that your font cache is corrupted. 😣 > > Can you please try this series of steps? My hope is that this brings the cache back into a good state: > > * Open `%LOCALAPPDATA%\Microsoft\Windows\Fonts` and check if the folder is empty. If it's not empty, open the Fonts control panel (search for "fonts" in the start menu): > ![image](https://private-user-images.githubusercontent.com/2256941/324250191-d06261a7-b041-4326-93e7-148a1427493e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM3NzI0MzAsIm5iZiI6MTcxMzc3MjEzMCwicGF0aCI6Ii8yMjU2OTQxLzMyNDI1MDE5MS1kMDYyNjFhNy1iMDQxLTQzMjYtOTNlNy0xNDhhMTQyNzQ5M2UucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MjJUMDc0ODUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmVkZDY0ZTU5YTM2Y2E2ZGQ3N2FmYmYwNzgxMjNmYmU5NjU2Zjc0YWVmYjQ5YmFmYjNlYjU5MjZmMzNjZmY4YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.m8pp3vpEFCL3U51QoGeSKfNNBzAmOador2Sc04FlEsg) > Find and delete each corresponding font until the `%LOCALAPPDATA%\Microsoft\Windows\Fonts` folder is empty. > * Download the D2CodingLigature font (https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/D2Coding.zip) again and install it for **all users**. > * Uninstall both, your "D2CodingLigature Nerd Font" and "FragmentMono Nerd Font" fonts simultaneously. > > Afterwards, reboot your PC and try installing the "D2CodingLigature Nerd Font" (for all users). I tried reinstalling "D2CodingLigature Nerd Font Mono" and it didn't pop up again, but I have a new problem: I can't select any font. It looks like some program is locking up my Terminal fonts! ![PixPin_2024-04-22_16-00-56](https://github.com/microsoft/terminal/assets/30720287/b2702773-788b-4231-849e-b520433fdf8a)
Author
Owner

@ShaneLee-9 commented on GitHub (Apr 22, 2024):

Oh, I seem to have found the reason. I don’t know when the font of Powershell was set separately in my terminal.
image
image

@ShaneLee-9 commented on GitHub (Apr 22, 2024): Oh, I seem to have found the reason. I don’t know when the font of Powershell was set separately in my terminal. ![image](https://github.com/microsoft/terminal/assets/30720287/1f783746-b3bd-4a6f-9523-f7a0137c5344) ![image](https://github.com/microsoft/terminal/assets/30720287/e6cfd432-4ae7-4df2-8474-fb3864de0e66)
Author
Owner

@DHowett commented on GitHub (Apr 22, 2024):

Thanks for following up!

@DHowett commented on GitHub (Apr 22, 2024): Thanks for following up!
Author
Owner

@lhecker commented on GitHub (Apr 22, 2024):

I'd like to apologize for not noticing the extra font face entry in your settings file. 😣
I'm glad however, that you were to able to resolve the issue!

@lhecker commented on GitHub (Apr 22, 2024): I'd like to apologize for not noticing the extra font face entry in your settings file. 😣 I'm glad however, that you were to able to resolve the issue!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21527