Skip to content

Commit

Permalink
Add font: 0xProto
Browse files Browse the repository at this point in the history
  • Loading branch information
piraces committed Oct 13, 2023
1 parent 5911f10 commit df63a41
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/scripts/lib/fonts.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{
"fonts": [
{
"unpatchedName": "0xProto",
"RFN": false,
"patchedName": "0xProto",
"folderName": "0xProto",
"imagePreviewFont": "0xProto",
"linkPreviewFont": "0xProto",
"caskName": "0xProto",
"repoRelease": true,
"description": "An opinionated font for software engineers"
},
{
"unpatchedName": "IBM 3270",
"RFN": false,
Expand Down
Binary file added patched-fonts/0xProto/0xProtoNerdFont-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
42 changes: 42 additions & 0 deletions patched-fonts/0xProto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 0xProto

An opinionated font for software engineers 💻

For more information have a look at the upstream website: https://github.com/0xType/0xProto

Version: 1.300

Copyright (c) 2023 [0xType](https://0xtype.dev)

## 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

3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ See [Wiki: Icon names in shell][wiki-icon-names-in-shell]

| Font Name | Font Name and Repository | ver |\*RFN | Status |
|:--------------------------------------------------|:----------------------------------|:------|:-----|:------------------|
| [0xProto][p-0xProto] | [0xProto][f-0xProto] | 1.300 | NO | ![w] ![m2] ![l] |
| [3270 Nerd Font][p-3270] | [3270][f-3270] | 3.0.1 | NO | ![w] ![m2] ![l] |
| [Agave][p-agave] | [Agave][f-agave] | 37 | NO | ![w] ![m2] ![l] |
| [Anonymice Nerd Font][p-anonymous-pro] | [Anonymous Pro][f-a-pro] | 1.002 | YES | ![w] ![m2] ![l] |
Expand Down Expand Up @@ -614,6 +615,7 @@ Link References
Font repos
-->

[f-0xProto]:https://github.com/0xType/0xProto
[f-3270]:https://github.com/rbanffy/3270font
[f-agave]:https://github.com/agarick/agave
[f-a-pro]:https://www.marksimonson.com/fonts/view/anonymous-pro
Expand Down Expand Up @@ -665,6 +667,7 @@ Font repos
Patched Font internal links
-->

[p-0xProto]:patched-fonts/0xProto
[p-3270]:patched-fonts/3270
[p-agave]:patched-fonts/Agave
[p-anonymous-pro]:patched-fonts/AnonymousPro
Expand Down
Binary file added src/unpatched-fonts/0xProto/0xProto-Regular.ttf
Binary file not shown.
9 changes: 9 additions & 0 deletions src/unpatched-fonts/0xProto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 0xProto

An opinionated font for software engineers 💻

For more information have a look at the upstream website: https://github.com/0xType/0xProto

Version: 1.300

Copyright (c) 2023 [0xType](https://0xtype.dev)

0 comments on commit df63a41

Please sign in to comment.