Please can you include the degree symbol in the standard fonts?
Most of the screens in my app use degrees as it’s a temp based system.
Thanks
Alex
Please can you include the degree symbol in the standard fonts?
Most of the screens in my app use degrees as it’s a temp based system.
Thanks
Alex
Just create a new font where you add the degree symbol:
Yes i know. Its just a pain to do and include font awesome each time. I currently have to do this for 2 roboto fonts that could be by default if the symbol was included.
I thought it would be nice for newer users if this was included by default.
The other reason would be that when i tried using the python scrip to create the font it doesnt seem to allow additional symbols:
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r 0x20-0x7F
Forced faster kerning format (via classes). Size increase is 388 bytes.
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r 0x20-0x7F, º
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: 0x20-0x7F,
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r “0x20-0x7F, º”
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: 0x20-0x7F,
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r “0x20-0x7F, U+BA”
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: 0x20-0x7F,
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r 0x20-0x7F, U+BA
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: 0x20-0x7F,
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r 0x20-0x7F -r U+BA
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: U+BA
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r 0x20-0x7F, 167
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: 0x20-0x7F,
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r 0x20-0x7F, 0xba
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: 0x20-0x7F,
C:\Users\username\Documents\Arduino\libraries\LittlevGL\src\scripts\built_in_font>python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r “0x20-0x7F, 0xba”
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4}
[–lcd | --lcd-v] --format {dump,bin,lvgl} --font
[-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format]
[–no-compress] [–no-prefilter] [–no-kerning]
[–full-info]
lv_font_conv.js: error: argument “-r/–range”: Invalid range value: 0x20-0x7F,
Any ideas?
It’s a good idea to add the degree symbol to the default fonts. I’ll do it in the next release.
In built_in_font_gen.py
the ASCII range is hardcoded. You need to modify the script.
Thank you!!
I did look at the script, i wasn’t sure how to do that. python is not my strong point, i havent read any until yours…
Thank you again.
Alex