Cim

Results 54 comments of Cim

This would be an amazing feature so I can finally include a powerline font that would go great with Oh My Zsh.

> MacOS: No clue on this one, never used a mac for this sortof stuff Installing fonts on macOS requires users to open the font file they want to install...

@whtjs your solution is the cleanest and fastest way to import a font without using nginx or any other weird hacks. Thank you! Now I can automate installation of oh-my-zsh...

Using sed to edit `/usr/lib/code-server/src/browser/pages/vscode.html` works for me but the fonts are hosted on my site and on a different domain.

@kaaax0815 see my repo https://github.com/demyxco/code-server/blob/master/tag-latest/Dockerfile#L113-L124 Can confirm on my iPad that it works; it doesn't have the MesloLGS NF fonts installed locally. ![IMG_0349](https://user-images.githubusercontent.com/3078484/108873834-64c10f80-75b0-11eb-9abf-096849c2367a.PNG)

@Merith-TK I don't have experience in using code-server outside of Docker but I'm assuming you can just edit that same file and it'll load it anyways? The theme is called...

Version 4.x broke the custom font hack since `code-server/src/browser/pages/vscode.html` doesn't exist anymore 😔 Also a header setting is preventing external fonts from loading: ``` Refused to apply inline style because...

@benz0li awesome, can confirm it works on my iPad, which has no other fonts installed.

@bjun626 you have to load the fonts locally and not remotely https://github.com/demyxco/code-server/blob/master/tag-latest/Dockerfile#L112-L125. Pretty much place the fonts in the public directory `/usr/local/lib/code-server/src/browser/pages` and the font-face url would be `_static/src/browser/pages/your-custom-font.woff`.

@ManiaciaChao many ways to go about this 👌 interesting approach though. Since mine is a Docker setup, I'll have to include the fonts during build.