-
I wanted to patch my own font, so from the instructions on the main page, I installed fontforge. Then going down the page a bit, it says:
So I tried fontforge -script font-patcher PATH_TO_FONT because none of the other instructions were applicable to me. It didn't work. Looking around I saw someone who had the same issue and it turned out they didn't use an argument. So I added --complete. It didn't work. I went down to examples:
None of these applied to me. Googling I finally found this page: https://github.com/alexandermckay/font-patcher Am I missing something? Am I doing something wrong? What I did isn't included anywhere on this repo. I'm confused. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry that the documentation is that misleading :-( Lets first solve your problem, then tackle correction of the documentation. The Nerd Fonts Preparation for self-patchingFor most (all except the Container method) you need Recommended wayCurrently the recommended way to get the That zip file contains the script and the symbols. It has to be extracted to some directory and will put the symbol files (in form of symbol source fonts) in a sub-directory. The relative path between the script location and those files is hard-coded in the script (although it can be overridden for advanced usage). Direct git access wayA good option, and needed if you want to patch with the most recent bugfixes applied (i.e. with HEAD), you need to download the Future simple wayThere is a PR #741 that, if you start Container wayThere is a docker container prepared here. You need to have docker installed on you system and then you can patch your font in that container. (I never used that.) It contains (I believe) Actual patchingWith everything downloaded and installed, the simplest way is on the command line to go in the same directory where
You can give different options to the call, the most used are possibly The patched font will be created in you current workdir. The container solution is similar but slightly different, see the manual on dockerhub. For your concrete problems, what you do not say is how you got |
Beta Was this translation helpful? Give feedback.
Sorry that the documentation is that misleading :-(
Lets first solve your problem, then tackle correction of the documentation.
The Nerd Fonts
font-patcher
is a script that tellsfontforge
how to patch your font. In order to add some symbols to your font it also needs that symbols - these binary files are not included in thefont-patcher
script.Preparation for self-patching
For most (all except the Container method) you need
fontforge
. How you can get this depends on your OS. If you use some Linux, most probably some version offontforge
is in your distributions package repository and can be installed by your normal software installation way. Otherwise, in my opinion it is best to follow…