InfiniTime/src/displayapp/fonts
ZephyrLabs 96346b9884 Update jetbrains_mono_bold_20.c
added paddle symbol in font
2020-12-03 20:02:35 +05:30
..
jetbrains_mono_bold_20.c Update jetbrains_mono_bold_20.c 2020-12-03 20:02:35 +05:30
jetbrains_mono_extrabold_compressed.c Fixed all the includes that were broken due to the renames 2020-10-02 22:16:48 +03:00
Readme.md Update Readme.md 2020-12-03 20:02:08 +05:30

#Fonts

Generate the fonts:

  • Open the LVGL font converter
  • Name : jetbrains_mono_bold_20
  • Size : 20
  • Bpp : 1 bit-per-pixel
  • Do not enable font compression and horizontal subpixel hinting
  • Load the file JetBrainsMono-Bold.woff and specify the following range : 0x20-0x7f, 0x410-0x44f
  • Add a 2nd font, load the file FontAwesome5-Solid+Brands+Regular.woff and specify the following range : 0xf293, 0xf294, 0xf244, 0xf240, 0xf242, 0xf243, 0xf241, 0xf54b, 0xf21e, 0xf1e6, 0xf54b, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf069, 0xf1fc, 0xf45d
  • Click on Convert, and download the file jetbrains_mono_bold_20.c and copy it in src/DisplayApp/Fonts

Add new symbols:

  • Browse the cheatsheet and find your new symbols
  • For each symbol, add its hex code (0xf641 for the 'Ad' icon, for example) to the Range list
  • Convert this hex value into a UTF-8 code using this site
  • Define the new symbols in src/DisplayApp/Screens/Symbols.h:
static constex char* newSymbol = "\xEF\x86\x85";