summaryrefslogtreecommitdiff
path: root/src/displayapp/fonts
diff options
context:
space:
mode:
authormedeyko <vladimir.medeyko@gmail.com>2022-02-07 17:25:56 +0300
committerJF <JF002@users.noreply.github.com>2022-03-03 21:13:54 +0100
commit43399b3832df7375f9139d7bd3c082a49549c616 (patch)
tree73e2e881b333b258aecef4ef1548dab3e0ee73da /src/displayapp/fonts
parent1eaf258a633969abdd0e41fbcac9e17fe38eb409 (diff)
Update README.md
Diffstat (limited to 'src/displayapp/fonts')
-rw-r--r--src/displayapp/fonts/README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/displayapp/fonts/README.md b/src/displayapp/fonts/README.md
index 40ecd3e2..5007060e 100644
--- a/src/displayapp/fonts/README.md
+++ b/src/displayapp/fonts/README.md
@@ -31,6 +31,23 @@ Add new symbols:
static constexpr const char* newSymbol = "\xEF\x86\x85";
```
+#### Fix the zero symbol
+If you don't wish the inner dot of the 0 (zero) symbol to stick to the boundary), edit `src/displayapp/fonts/jetbrains_mono_bold_20.c` and replace:
+
+ /* U+0030 "0" */
+ 0x3f, 0x1f, 0xef, 0x3f, 0x87, 0xe1, 0xf8, 0x7f,
+ 0xdf, 0xf7, 0xe1, 0xf8, 0x7e, 0x1f, 0xcf, 0x7f,
+ 0x8f, 0xc0,
+
+with
+
+ /* U+0030 "0" */
+ 0x3f, 0x1f, 0xef, 0x3f, 0x87, 0xe1, 0xf8, 0x7e,
+ 0xdf, 0xb7, 0xe1, 0xf8, 0x7e, 0x1f, 0xcf, 0x7f,
+ 0x8f, 0xc0,
+
+(there are two changes: 7f -> 7e and f7 -> b7)
+
## Simple method to generate a font
If you want to generate a basic font containing only numbers and letters, you can use the above settings but instead of specifying a range, simply list the characters you need in the Symbols field and leave the range blank. This is the approach used for the PineTimeStyle watchface.