QMK-based keyboards support OLED displays and use a bitmap font encoded in
glcdfont format. This tool decodes the font to PBM and back into char array
for use in glcdfont.c. PBM is a plain-text monochrome image format supported
by Gimp.
Make sure you have a working Elixir 1.8+ interpreter installed. Consult your package manager.
Macos: brew install elixir
Easiest way:
- install the asdf tool
asdf plugin-add elixirasdf plugin-add erlangasdf install
Convert a glcdfont.c file
cat glcdfont.c | ./decode.exs > glcdfont.pbmThe PBM file can be edited with Gimp. When you export it back into PBM, make sure to pick the ASCII mode.
cat glcdfont.pbm | ./encode.exsPaste output in the array in the glcdfont.c file. Done!