Skip to content

Commit

Permalink
FWEO-1214 make alphabet letters bold again lnsp lnx
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin.meudic committed Jul 11, 2024
1 parent 02e4b41 commit 1bb1e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_nbgl/src/nbgl_obj_keyboard_nanos.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ static void keyboardDrawChar(int16_t x0, int8_t y0, bool inverted, const char *c
nbgl_area_t rectArea;

rectArea.backgroundColor = inverted ? WHITE : BLACK;
rectArea.width = nbgl_getCharWidth(BAGL_FONT_OPEN_SANS_REGULAR_11px_1bpp, charPtr);
rectArea.width = nbgl_getCharWidth(BAGL_FONT_OPEN_SANS_EXTRABOLD_11px_1bpp, charPtr);
rectArea.height = 12;
rectArea.bpp = NBGL_BPP_1;
// center
rectArea.x0 = x0 + (KEYBOARD_KEY_WIDTH - rectArea.width) / 2;
rectArea.y0 = y0 + (KEYBOARD_KEY_HEIGHT - rectArea.height) / 2 - 3;
nbgl_drawText(
&rectArea, charPtr, 1, BAGL_FONT_OPEN_SANS_REGULAR_11px_1bpp, inverted ? BLACK : WHITE);
&rectArea, charPtr, 1, BAGL_FONT_OPEN_SANS_EXTRABOLD_11px_1bpp, inverted ? BLACK : WHITE);
}

static void keyboardDrawCommon(nbgl_keyboard_t *keyboard)
Expand Down

0 comments on commit 1bb1e6d

Please sign in to comment.