Skip to content

Commit 64bf344

Browse files
committed
Remove unused list of fonts.
We also lose ugfx.print_funts() which was somehow broken. See micropython#23
1 parent f14e924 commit 64bf344

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

esp32/modugfx.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,9 @@
4646
#include "py/mphal.h"
4747
#include "py/runtime.h"
4848

49-
const char *font_list[] = {"Roboto-Black22", "Roboto-BlackItalic24",
50-
"Roboto-Regular12", "Roboto-Regular18",
51-
"Roboto-Regular22", "PermanentMarker22"};
52-
5349
typedef struct _ugfx_obj_t { mp_obj_base_t base; } ugfx_obj_t;
5450

5551
STATIC mp_obj_t ugfx_init(void) {
56-
// gwinSetDefaultFont(gdispOpenFont(font_list[0]));
57-
// gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
5852
gfxInit();
5953
return mp_const_none;
6054
}
@@ -66,14 +60,6 @@ STATIC mp_obj_t ugfx_deinit(void) {
6660
}
6761
STATIC MP_DEFINE_CONST_FUN_OBJ_0(ugfx_deinit_obj, ugfx_deinit);
6862

69-
/// \method print_fonts()
70-
///
71-
/// Prints the list of installed fonts
72-
///
73-
STATIC mp_obj_t ugfx_print_fonts(void) {
74-
return mp_obj_new_list(6, (void **)font_list);
75-
}
76-
STATIC MP_DEFINE_CONST_FUN_OBJ_0(ugfx_print_fonts_obj, ugfx_print_fonts);
7763

7864
// PRIMITIVES
7965

@@ -652,8 +638,6 @@ STATIC const mp_rom_map_elem_t ugfx_module_globals_table[] = {
652638
{MP_OBJ_NEW_QSTR(MP_QSTR_polygon), (mp_obj_t)&ugfx_polygon_obj},
653639
{MP_OBJ_NEW_QSTR(MP_QSTR_fill_polygon), (mp_obj_t)&ugfx_fill_polygon_obj},
654640

655-
{MP_OBJ_NEW_QSTR(MP_QSTR_print_fonts), (mp_obj_t)&ugfx_print_fonts_obj},
656-
657641
{MP_OBJ_NEW_QSTR(MP_QSTR_demo), (mp_obj_t)&ugfx_demo_obj},
658642
};
659643

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy