diff options
author | Adam Pigg <adam@piggz.co.uk> | 2020-07-11 21:41:20 +0100 |
---|---|---|
committer | Adam Pigg <adam@piggz.co.uk> | 2020-07-11 21:41:20 +0100 |
commit | 789e06fdb77704fa5da12355ad5f1d8c9d4455e5 (patch) | |
tree | 56972f902675749e0df58e91d8670dd5215d677e /src/DisplayApp/Fonts/Readme.md | |
parent | 7a1e6e6e5bf187846bd533f04ee58e04798f0035 (diff) | |
parent | 6309719a62436fd746a7a8b228205e93b419ca26 (diff) |
Merge branch 'develop' of https://github.com/JF002/Pinetime into music
Diffstat (limited to 'src/DisplayApp/Fonts/Readme.md')
-rw-r--r-- | src/DisplayApp/Fonts/Readme.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/DisplayApp/Fonts/Readme.md b/src/DisplayApp/Fonts/Readme.md new file mode 100644 index 00000000..ddccc820 --- /dev/null +++ b/src/DisplayApp/Fonts/Readme.md @@ -0,0 +1,23 @@ +#Fonts +* [Jetbrains Mono](https://www.jetbrains.com/fr-fr/lp/mono/) +* [Awesome font from LVGL](https://lvgl.io/assets/others/FontAwesome5-Solid+Brands+Regular.woff) + +## Generate the fonts: + + * Open the [LVGL font converter](https://lvgl.io/tools/fontconverter) + * 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` + * 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` + * 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](https://fontawesome.com/cheatsheet/free/solid) 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](http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=f185&mode=hex) + * Define the new symbols in `src/DisplayApp/Screens/Symbols.h`: +``` +static constex char* newSymbol = "\xEF\x86\x85"; +``` |