Merge remote-tracking branch 'upstream/develop' into pts-options
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
# Fonts
|
||||
|
||||
* [Jetbrains Mono](https://www.jetbrains.com/lp/mono/)
|
||||
* [Font Awesome](https://fontawesome.com/v5/cheatsheet/free/solid)
|
||||
* [Open Sans Light](https://fonts.google.com/specimen/Open+Sans)
|
||||
* [Material Symbols](https://fonts.google.com/icons)
|
||||
- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/)
|
||||
- [Font Awesome](https://fontawesome.com/v5/cheatsheet/free/solid)
|
||||
- [Open Sans Light](https://fonts.google.com/specimen/Open+Sans)
|
||||
- [Material Symbols](https://fonts.google.com/icons)
|
||||
|
||||
### How to add new symbols:
|
||||
|
||||
* Browse the cheat sheets and pick symbols
|
||||
* [Font Awesome](https://fontawesome.com/v5/cheatsheet/free/solid)
|
||||
* [Material Symbols](https://fonts.google.com/icons)
|
||||
* For each symbol, add its hex code (0xf641 for the 'Ad' icon, for example) to the *Range* list in the `fonts.json` file
|
||||
* Convert this hex value into a UTF-8 code
|
||||
- Browse the cheat sheets and pick symbols
|
||||
- [Font Awesome](https://fontawesome.com/v5/cheatsheet/free/solid)
|
||||
- [Material Symbols](https://fonts.google.com/icons)
|
||||
- For each symbol, add its hex code (0xf641 for the 'Ad' icon, for example) to the *Range* list in the `fonts.json` file
|
||||
- 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`:
|
||||
- Define the new symbols in `src/displayapp/screens/Symbols.h`:
|
||||
|
||||
```
|
||||
static constexpr const char* newSymbol = "\xEF\x86\x85";
|
||||
@@ -23,13 +23,13 @@ static constexpr const char* newSymbol = "\xEF\x86\x85";
|
||||
|
||||
inside `fonts`, there is a dictionary of fonts,
|
||||
and for each font there is:
|
||||
* sources - list of file,range(,symbols) wanted (as a dictionary of those)
|
||||
* bpp - bits per pixel.
|
||||
* size - size.
|
||||
* patches - list of extra "patches" to run: a path to a .patch file. (may be relative)
|
||||
* compress - optional. default disabled. add `"compress": true` to enable
|
||||
|
||||
- sources - list of file,range(,symbols) wanted (as a dictionary of those)
|
||||
- bpp - bits per pixel.
|
||||
- size - size.
|
||||
- patches - list of extra "patches" to run: a path to a .patch file. (may be relative)
|
||||
- compress - optional. default disabled. add `"compress": true` to enable
|
||||
|
||||
### Navigation font
|
||||
|
||||
`navigtion.ttf` is created with the web app [icomoon](https://icomoon.io/app) by importing the svg files from `src/displayapp/icons/navigation/unique` and generating the font. `lv_font_navi_80.json` is a project file for the site, which you can import to add or remove icons.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
},
|
||||
{
|
||||
"file": "FontAwesome5-Solid+Brands+Regular.woff",
|
||||
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf201, 0xf06e, 0xf015"
|
||||
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf201, 0xf06e, 0xf015, 0xf00c"
|
||||
}
|
||||
],
|
||||
"bpp": 1,
|
||||
@@ -58,7 +58,7 @@
|
||||
"sources": [
|
||||
{
|
||||
"file": "material-design-icons/MaterialIcons-Regular.ttf",
|
||||
"range": "0xf00b, 0xe3aa-0xe3ac, 0xe7f6-0xe7f7, 0xe8b8, 0xe40a"
|
||||
"range": "0xf00b, 0xe3aa-0xe3ac, 0xe7f6-0xe7f7, 0xe8b8, 0xef44, 0xe40a"
|
||||
}
|
||||
],
|
||||
"bpp": 1,
|
||||
|
||||
Reference in New Issue
Block a user