rename to canvas_set_custom_u8g2_font

This commit is contained in:
LTVA1 2023-01-25 08:18:32 +03:00
parent 6aeb9478aa
commit 34ff250eea
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ static void app_draw_callback(Canvas* canvas, void* ctx) {
canvas_clear(canvas);
canvas_set_custom_font(canvas, u8g2_font_tom_thumb_4x6_tr);
canvas_set_custom_u8g2_font(canvas, u8g2_font_tom_thumb_4x6_tr);
canvas_draw_str(canvas, 0, 6, "This is a tiny custom font");
canvas_draw_str(canvas, 0, 12, "012345.?! ,:;\"\'@#$%");

View File

@ -137,7 +137,7 @@ void canvas_set_font(Canvas* canvas, Font font) {
}
}
void canvas_set_custom_font(Canvas* canvas, const uint8_t* font) {
void canvas_set_custom_u8g2_font(Canvas* canvas, const uint8_t* font) {
furi_assert(canvas);
u8g2_SetFontMode(&canvas->fb, 1);
u8g2_SetFont(&canvas->fb, font);

View File

@ -620,7 +620,7 @@ Function,+,canvas_reset,void,Canvas*
Function,+,canvas_set_bitmap_mode,void,"Canvas*, _Bool"
Function,+,canvas_set_color,void,"Canvas*, Color"
Function,+,canvas_set_font,void,"Canvas*, Font"
Function,+,canvas_set_custom_font,void,"Canvas*, const uint8_t*"
Function,+,canvas_set_custom_u8g2_font,void,"Canvas*, const uint8_t*"
Function,+,canvas_set_font_direction,void,"Canvas*, CanvasDirection"
Function,+,canvas_string_width,uint16_t,"Canvas*, const char*"
Function,+,canvas_width,uint8_t,Canvas*

1 entry status name type params
620 Function + canvas_set_bitmap_mode void Canvas*, _Bool
621 Function + canvas_set_color void Canvas*, Color
622 Function + canvas_set_font void Canvas*, Font
623 Function + canvas_set_custom_font canvas_set_custom_u8g2_font void Canvas*, const uint8_t*
624 Function + canvas_set_font_direction void Canvas*, CanvasDirection
625 Function + canvas_string_width uint16_t Canvas*, const char*
626 Function + canvas_width uint8_t Canvas*