You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be interesting if pixi global would also support font packages.
On macOS I think we could (sym-)link the font to ~/Library/Fonts.
On Linux, there is a similar directory under ~/.local/share/fonts (need to call fc-cache clean or something afterwards).
On Windows, a snippet like this might work:
fonts_dir = os.path.join(os.environ["WINDIR"], "Fonts")
font_reg_path = os.path.join(os.environ["WINDIR"], r"Fonts\{}".format(font_name))
# Copy font to Windows Fonts folder
shutil.copy2(font_path, font_reg_path)
# Register font in system
import winreg
with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"Software\Microsoft\Windows NT\CurrentVersion\Fonts", 0, winreg.KEY_SET_VALUE) as key:
winreg.SetValueEx(key, font_name, 0, winreg.REG_SZ, font_name)
The text was updated successfully, but these errors were encountered:
Problem description
It would be interesting if
pixi global
would also support font packages.On macOS I think we could (sym-)link the font to
~/Library/Fonts
.On Linux, there is a similar directory under
~/.local/share/fonts
(need to callfc-cache clean
or something afterwards).On Windows, a snippet like this might work:
The text was updated successfully, but these errors were encountered: