mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add FreeType debug high watermark
This commit is contained in:
parent
558a98410f
commit
001d1779eb
@ -215,6 +215,11 @@ void lv_ft_font_destroy(lv_font_t* font)
|
||||
#endif
|
||||
}
|
||||
|
||||
size_t lv_ft_freetype_high_watermark()
|
||||
{
|
||||
return uxTaskGetStackHighWaterMark(FTTaskHandle);
|
||||
}
|
||||
|
||||
/**********************
|
||||
* STATIC FUNCTIONS
|
||||
**********************/
|
||||
@ -464,8 +469,8 @@ static bool lv_ft_font_init_cache(lv_ft_info_t* info)
|
||||
font->get_glyph_dsc = get_glyph_dsc_cb;
|
||||
font->get_glyph_bitmap = get_glyph_bitmap_cb_cache;
|
||||
font->subpx = LV_FONT_SUBPX_NONE;
|
||||
font->line_height = ((face_size->face->size->metrics.ascender - face_size->face->size->metrics.descender) >> 6);
|
||||
font->base_line = -(face_size->face->size->metrics.descender >> 6);
|
||||
font->line_height = ((face_size->face->size->metrics.ascender - face_size->face->size->metrics.descender) >> 6);
|
||||
font->base_line = -(face_size->face->size->metrics.descender >> 6);
|
||||
|
||||
FT_Fixed scale = face_size->face->size->metrics.y_scale;
|
||||
int8_t thickness = FT_MulFix(scale, face_size->face->underline_thickness) >> 6;
|
||||
|
@ -80,6 +80,9 @@ bool lv_ft_font_init(lv_ft_info_t* info);
|
||||
*/
|
||||
void lv_ft_font_destroy(lv_font_t* font);
|
||||
|
||||
// Unsed Task memory
|
||||
size_t lv_ft_freetype_high_watermark();
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
@ -63,6 +63,7 @@ void font_setup()
|
||||
#else
|
||||
LOG_VERBOSE(TAG_FONT, F("FreeType " D_SERVICE_DISABLED));
|
||||
#endif // HASP_USE_FREETYPE
|
||||
LOG_DEBUG(TAG_FONT, F("FreeType High Watermark %u"), lv_ft_freetype_high_watermark());
|
||||
}
|
||||
|
||||
size_t font_split_payload(const char* payload)
|
||||
@ -217,6 +218,8 @@ static lv_font_t* font_add_to_list(const char* payload)
|
||||
// Convert the payload to a font pointer
|
||||
lv_font_t* get_font(const char* payload)
|
||||
{
|
||||
LOG_DEBUG(TAG_FONT, F("FreeType High Watermark %u"), lv_ft_freetype_high_watermark());
|
||||
|
||||
lv_font_t* font = font_find_in_list(payload);
|
||||
if(font) return font;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user