-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom font (to be able to put custom icons) #30
Comments
Patcher available from: https://github.com/ryanoasis/nerd-fonts Example font download: https://fonts.google.com/specimen/Roboto Run: docker run --rm -v /tmp/fonts/in:/in -v /tmp/fonts/out:/out nerdfonts/patcher Outcome: /tmp/fonts
├── in
│ ├── LICENSE.txt
│ ├── Roboto-Black.ttf
│ ├── Roboto-BlackItalic.ttf
│ ├── Roboto-Bold.ttf
│ ├── Roboto-BoldItalic.ttf
│ ├── Roboto-Italic.ttf
│ ├── Roboto-Light.ttf
│ ├── Roboto-LightItalic.ttf
│ ├── Roboto-Medium.ttf
│ ├── Roboto-MediumItalic.ttf
│ ├── Roboto-Regular.ttf
│ ├── Roboto-Thin.ttf
│ └── Roboto-ThinItalic.ttf
└── out
├── RobotoNerdFont-Black.ttf
├── RobotoNerdFont-BlackItalic.ttf
├── RobotoNerdFont-Bold.ttf
├── RobotoNerdFont-BoldItalic.ttf
├── RobotoNerdFont-Italic.ttf
├── RobotoNerdFont-Light.ttf
├── RobotoNerdFont-LightItalic.ttf
├── RobotoNerdFont-Medium.ttf
├── RobotoNerdFont-MediumItalic.ttf
├── RobotoNerdFont-Regular.ttf
├── RobotoNerdFont-Thin.ttf
└── RobotoNerdFont-ThinItalic.ttf |
CLI optionsAre not discoverable with Icon indexSearch icons from here: https://www.nerdfonts.com/cheat-sheet Patcher adds by default:
Icon sets and code points: https://github.com/ryanoasis/nerd-fonts/wiki/Glyph-Sets-and-Code-Points Observations
Which font to patch?System fonts are in: Let's patch Fira Code from How to patchdocker run --rm -v /usr/share/fonts/truetype/firacode/FiraCode-Regular.ttf:/in/FiraCode-Regular.ttf:ro -v /tmp/fonts/out:/out nerdfonts/patcher --materialdesignicons Copy the font and rebuild font cache: sudo cp /tmp/fonts/out/FiraCodeNerd*-Regular.ttf /usr/share/fonts/truetype/firacode/
sudo fc-cache -f -v How to testOpen text editor (e.g. Mousepad), if you patched Copy the "Icon" from the cheat sheet - that will be the text "symbol" that gets converted to the icon: |
Use cases:
The text was updated successfully, but these errors were encountered: