Skip to content

Commit 0646acc

Browse files
Changelog
1 parent 295db3a commit 0646acc

3 files changed

Lines changed: 2 additions & 51 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ Builtin Apps:
77
- About: show correct next update partition instead of always using get_next_update()
88
- OSUpdate: restrict OTA update target to ota_0/ota_1 instead of all ota_N partitions (via shared partition helper)
99

10-
Framework:
11-
- Add mpos.partitions.get_next_update_partition() helper that alternates between ota_0 and ota_1 only
12-
1310
Frameworks:
11+
- Add mpos.partitions.get_next_update_partition() helper that alternates between ota_0 and ota_1 only
1412
- SettingActivity: support slider UI for integer settings
1513

1614
Board Support:
1715
- Fri3d 2026: access expander.analog as property instead of function
1816

1917
OS:
2018
- Disable the repl on hardware uart for esp32s3 targets (USB serial still works)
19+
- Remove big, rarely used font Montserrat 34, 40 and 48 to reduce build size by 218KiB - apps can still upscale or load fonts at runtime
2120

2221
0.9.5
2322
=====

internal_filesystem/apps/com.micropythonos.showfonts/assets/showfonts.py

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ def onCreate(self):
1212

1313
y=0
1414
y = self.addAllFontsTitles(screen)
15-
#self.addAllFonts(screen)
1615
self.addAllGlyphs(screen, y)
1716
self.setContentView(screen)
1817

@@ -32,9 +31,6 @@ def addAllFontsTitles(self, screen):
3231
(lv.font_montserrat_24, "Montserrat 24"), # +4
3332
(lv.font_unscii_16, "Unscii 16"),
3433
(lv.font_montserrat_28, "Montserrat 28"), # +4
35-
(lv.font_montserrat_34, "Montserrat 34"), # +6
36-
(lv.font_montserrat_40, "Montserrat 40"), # +6
37-
(lv.font_montserrat_48, "Montserrat 48"), # +8
3834
]
3935

4036
y = 0
@@ -51,50 +47,6 @@ def addAllFontsTitles(self, screen):
5147

5248
return y
5349

54-
def addAllFonts(self, screen):
55-
fonts = [
56-
(lv.font_montserrat_10, "Montserrat 10"),
57-
(lv.font_unscii_8, "Unscii 8"),
58-
(lv.font_montserrat_16, "Montserrat 16"), # +4
59-
(lv.font_montserrat_22, "Montserrat 22"), # +6
60-
(lv.font_unscii_16, "Unscii 16"),
61-
(lv.font_montserrat_30, "Montserrat 30"), # +8
62-
(lv.font_montserrat_38, "Montserrat 38"), # +8
63-
(lv.font_montserrat_48, "Montserrat 48"), # +10
64-
]
65-
66-
dsc = lv.font_glyph_dsc_t()
67-
68-
y = 0
69-
for font, name in fonts:
70-
x = 0
71-
title = lv.label(screen)
72-
title.set_text(name + ": 2357 !@#$%^&*(")
73-
title.set_style_text_font(lv.font_montserrat_16, lv.PART.MAIN)
74-
title.set_pos(x, y)
75-
y += title.get_height() + 20
76-
77-
line_height = font.get_line_height() + 4
78-
79-
for cp in range(0x20, 0xFF):
80-
if font.get_glyph_dsc(font, dsc, cp, cp+1):
81-
lbl = lv.label(screen)
82-
lbl.set_style_text_font(font, lv.PART.MAIN)
83-
lbl.set_text(chr(cp))
84-
lbl.set_pos(x, y)
85-
86-
width = font.get_glyph_width(cp, cp+1)
87-
x += width
88-
if x + width * 2 > screen.get_width():
89-
x = 0
90-
y += line_height
91-
92-
y += line_height*2
93-
94-
screen.set_height(y + 20)
95-
96-
97-
9850
def addAllGlyphs(self, screen, start_y):
9951
fonts = [
10052
#(lv.font_Noto_Sans_sat_emojis_compressed,
Binary file not shown.

0 commit comments

Comments
 (0)