Add instructions on adding font symbols
This commit is contained in:
parent
de0ab61b22
commit
5678d73c4f
7 changed files with 33890 additions and 0 deletions
21
README.md
21
README.md
|
|
@ -17,8 +17,29 @@ Then visit with your browser the site pointed by the previous command
|
||||||
|
|
||||||
Powered by [Zine](https://zine-ssg.io/docs/)
|
Powered by [Zine](https://zine-ssg.io/docs/)
|
||||||
|
|
||||||
|
## Adding icons
|
||||||
|
|
||||||
|
We have trimmed the list of icons that come from Nerdfonts, to add an icon:
|
||||||
|
|
||||||
|
Browse in https://www.nerdfonts.com/cheat-sheet and look for the icon to be
|
||||||
|
added.
|
||||||
|
|
||||||
|
1. Update the file `contrib/symbolnerdfontmonolist.txt` adding the unicode
|
||||||
|
2. Add the reference to assets/css/webfont.css
|
||||||
|
3. Use it the same as layouts/templates/base.html navbar
|
||||||
|
4. Update the fonts installing (uv pip install fonttools) with:
|
||||||
|
|
||||||
|
```python
|
||||||
|
pyftsubset contrib/fonts/nerdfonts/SymbolsNerdFontMono-Regular.ttf --unicodes-file=contrib/symbolnerdfontmonolist.txt --output-file=assets/fonts/SymbolsNerdFontMono-Regular.ttf
|
||||||
|
```
|
||||||
|
|
||||||
|
If the icon you want to use from nerdonfts is not present in contrib/fonts/nerdfonts
|
||||||
|
get it from https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/NerdFontsSymbolsOnly.zip
|
||||||
|
and update contrib to ease later needings.
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
* [Monospace Web Theme](https://owickstrom.github.io/the-monospace-web/)
|
* [Monospace Web Theme](https://owickstrom.github.io/the-monospace-web/)
|
||||||
* [Zine](https://zine-ssg.io/docs/)
|
* [Zine](https://zine-ssg.io/docs/)
|
||||||
* [Flow Control Editor](https://github.com/neurocyte/flow)
|
* [Flow Control Editor](https://github.com/neurocyte/flow)
|
||||||
|
* [NerdFonts](https://www.nerdfonts.com/cheat-sheet)
|
||||||
|
|
|
||||||
1480
contrib/fonts/nerdfonts/10-nerd-font-symbols.conf
Normal file
1480
contrib/fonts/nerdfonts/10-nerd-font-symbols.conf
Normal file
File diff suppressed because it is too large
Load diff
21
contrib/fonts/nerdfonts/LICENSE
Normal file
21
contrib/fonts/nerdfonts/LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Ryan L McIntyre
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
46
contrib/fonts/nerdfonts/README.md
Normal file
46
contrib/fonts/nerdfonts/README.md
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
# Nerd Fonts
|
||||||
|
|
||||||
|
This is an archived font from the Nerd Fonts release v3.4.0.
|
||||||
|
|
||||||
|
For more information see:
|
||||||
|
* https://github.com/ryanoasis/nerd-fonts/
|
||||||
|
* https://github.com/ryanoasis/nerd-fonts/releases/latest/
|
||||||
|
|
||||||
|
# Symbols Only
|
||||||
|
|
||||||
|
This font contains (in the patched-fonts folder) all symbols and is intended to be used
|
||||||
|
as fallback or together with fontconfig - so that you do not need to individually
|
||||||
|
patch all the fonts. YMMV.
|
||||||
|
|
||||||
|
## Which font?
|
||||||
|
|
||||||
|
### TL;DR
|
||||||
|
|
||||||
|
* Pick your font family:
|
||||||
|
* If you are limited to monospaced fonts (because of your terminal, etc) then pick a font with `Nerd Font Mono` (or `NFM`).
|
||||||
|
* If you want to have bigger icons (usually around 1.5 normal letters wide) pick a font without `Mono` i.e. `Nerd Font` (or `NF`). Most terminals support this, but ymmv.
|
||||||
|
* If you work in a proportional context (GUI elements or edit a presentation etc) pick a font with `Nerd Font Propo` (or `NFP`).
|
||||||
|
|
||||||
|
### Ligatures
|
||||||
|
|
||||||
|
Ligatures are generally preserved in the patched fonts.
|
||||||
|
Nerd Fonts `v2.0.0` had no ligatures in the `Nerd Font Mono` fonts, this has been dropped with `v2.1.0`.
|
||||||
|
If you have a ligature-aware terminal and don't want ligatures you can (usually) disable them in the terminal settings.
|
||||||
|
|
||||||
|
### Explanation
|
||||||
|
|
||||||
|
Once you narrow down your font choice of family (`Droid Sans`, `Inconsolata`, etc) and style (`bold`, `italic`, etc) you have 2 main choices:
|
||||||
|
|
||||||
|
#### `Option 1: Download already patched font`
|
||||||
|
|
||||||
|
* For a stable version download a font package from the [release page](https://github.com/ryanoasis/nerd-fonts/releases)
|
||||||
|
* Or download the development version from the folders here
|
||||||
|
|
||||||
|
#### `Option 2: Patch your own font`
|
||||||
|
|
||||||
|
* Patch your own variations with the various options provided by the font patcher (i.e. not include all symbols for smaller font size)
|
||||||
|
|
||||||
|
For more information see: [The FAQ](https://github.com/ryanoasis/nerd-fonts/wiki/FAQ-and-Troubleshooting#which-font)
|
||||||
|
|
||||||
|
[SIL-RFN]:http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web_fonts_and_RFNs#14cbfd4a
|
||||||
|
|
||||||
BIN
contrib/fonts/nerdfonts/SymbolsNerdFontMono-Regular.ttf
Normal file
BIN
contrib/fonts/nerdfonts/SymbolsNerdFontMono-Regular.ttf
Normal file
Binary file not shown.
32316
contrib/fonts/nerdfonts/webfont.css
Normal file
32316
contrib/fonts/nerdfonts/webfont.css
Normal file
File diff suppressed because it is too large
Load diff
6
contrib/symbolnerdfontmonolist.txt
Normal file
6
contrib/symbolnerdfontmonolist.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
U+eda2
|
||||||
|
U+f120
|
||||||
|
U+eadc
|
||||||
|
U+f409
|
||||||
|
U+e889
|
||||||
|
U+eda4
|
||||||
Loading…
Add table
Add a link
Reference in a new issue