doomemacs / doomemacs/core

Font install wont install at windows (Emacs installed by scoop)

Open
#7,596 2 comments 0 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### I confirm that...

- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.

- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.

- [X] The issue can be reproduced on the **latest** available commit of Doom.

- [X] The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. *(Unstable versions end in .50, .60, or .9x)*

### Expected behavior

Use `all-the-icons-install-fonts` and `nerd-icons-install-fonts` to try to install font for fix https://github.com/doomemacs/doomemacs/issues/7522
But not work

### Current behavior

It work at Linux but not in Windows

### Steps to reproduce

1. Open Emacs
2. type nerd-icons-install-fonts
3. Choice ~/AppData/Local/Microsoft/Windows/Fonts
4. Install finish
5. Restart Emacs
6. No icon show
7. Check Windows Font choicer, no icon font

### System Information

https://gist.github.com/MS-Xiangzhe/b721ad42b9beba05abb0b25b696a529d

### Fix way
Because Windows need command to install fonts not only put file to fonts dir.

We should download fonts at tmp dir and use command to install them.

Reference: https://superuser.com/questions/1765024/downloading-and-installing-fonts-using-powershell-commands-only/1812090#1812090

Maybe we need add below PowerShell command at doomemacs
```
$ShellApplication = New-Object -ComObject shell.application
$Fonts = $ShellApplication.NameSpace(0x14)

Get-ChildItem -Path ".\$FontName" -Include '*.ttf' -Recurse | ForEach-Object -Process {
$Fonts.CopyHere($_.FullName)
}
```

I'm just wondering where in doomemacs I should add them, thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.