Compare commits

...

6 commits

Author SHA1 Message Date
0x0000ff 932b816e6d
Merge 2b601a2303 into 8598142c27 2024-10-13 17:05:20 +02:00
NeroBurner 8598142c27
Remove unused submodule QCBOR (#2138)
Some checks failed
CI / build-firmware (push) Successful in 5m57s
CI / build-simulator (push) Failing after 3s
CI / get-base-ref-size (push) Has been skipped
CI / Compare build size (push) Has been skipped
The submodule isn't used anymore. Remove the submodule reference
completely.
2024-10-09 20:26:08 +02:00
0x0000ff 2b601a2303
Merge branch 'InfiniTimeOrg:main' into subpixel-font-rendering 2024-01-13 12:51:07 +00:00
0x0000ff 1aa1e32bca Add arguments to generate-fonts.py 2023-12-26 23:20:42 +00:00
0x0000ff b445ba44d8 Added support for building and using subpixel fonts 2023-12-25 12:02:38 +00:00
0x0000ff e9987d973b Merge branch 'main' of https://github.com/InfiniTimeOrg/InfiniTime 2023-12-25 11:21:01 +00:00
5 changed files with 7 additions and 7 deletions

3
.gitmodules vendored
View file

@ -4,9 +4,6 @@
[submodule "src/libs/littlefs"]
path = src/libs/littlefs
url = https://github.com/littlefs-project/littlefs.git
[submodule "src/libs/QCBOR"]
path = src/libs/QCBOR
url = https://github.com/laurencelundblade/QCBOR.git
[submodule "src/libs/arduinoFFT"]
path = src/libs/arduinoFFT
url = https://github.com/kosme/arduinoFFT.git

View file

@ -18,8 +18,10 @@ class Source(object):
self.symbols = d.get('symbols')
def gen_lvconv_line(lv_font_conv: str, dest: str, size: int, bpp: int, sources: typing.List[Source], compress:bool=False):
def gen_lvconv_line(lv_font_conv: str, dest: str, size: int, bpp: int, sources: typing.List[Source], compress:bool=False, subpixel:bool=False):
args = [lv_font_conv, '--size', str(size), '--output', dest, '--bpp', str(bpp), '--format', 'lvgl']
if subpixel:
args.append('--lcd')
if not compress:
args.append('--no-compress')
for source in sources:

@ -1 +0,0 @@
Subproject commit 56b17bf9f74096774944bcac0829adcd887d391e

View file

@ -432,7 +432,7 @@ typedef void* lv_indev_drv_user_data_t; /*Type of user data in the in
#define LV_USE_FONT_COMPRESSED 1
/* Enable subpixel rendering */
#define LV_USE_FONT_SUBPX 0
#define LV_USE_FONT_SUBPX 1
#if LV_USE_FONT_SUBPX
/* Set the pixel order of the display.
* Important only if "subpx fonts" are used.

View file

@ -18,11 +18,13 @@ class Source(object):
self.symbols = d.get('symbols')
def gen_lvconv_line(lv_font_conv: str, dest: str, size: int, bpp: int, format: str, sources: typing.List[Source], compress:bool=False):
def gen_lvconv_line(lv_font_conv: str, dest: str, size: int, bpp: int, format: str, sources: typing.List[Source], compress:bool=False, subpixel: bool=False):
if format != "lvgl" and format != "bin":
format = "bin" if dest.lower().endswith(".bin") else "lvgl"
args = [lv_font_conv, '--size', str(size), '--output', dest, '--bpp', str(bpp), '--format', format]
if subpixel:
args.append('--lcd')
if not compress:
args.append('--no-compress')
for source in sources: