mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 19:01:47 +03:00
rename to canvas_set_custom_u8g2_font
This commit is contained in:
parent
6aeb9478aa
commit
34ff250eea
@ -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.?! ,:;\"\'@#$%");
|
||||
|
@ -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);
|
||||
|
@ -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*
|
||||
|
|
Loading…
Reference in New Issue
Block a user