Skip to content

Commit

Permalink
Support new font sizes (28px & 36px)
Browse files Browse the repository at this point in the history
  • Loading branch information
nroggeman-ledger committed Jan 11, 2024
1 parent 20828ba commit 03619e0
Show file tree
Hide file tree
Showing 26 changed files with 15,836 additions and 11 deletions.
16 changes: 16 additions & 0 deletions lib_nbgl/fonts/config-Inter-Medium36-1bpp.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[main]
font=Inter-Medium.ttf
font_id_name=BAGL_FONT_INTER_MEDIUM_36px_1bpp
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=30
# This font can display characters at y=-1 => we need to compensate that
baseline_offset=1
fontSize=36
lineSize=44
firstChar=0x20
lastChar=0x7E
firstLine=5
align=true
crop=true
bpp=1
nbgl=true
16 changes: 16 additions & 0 deletions lib_nbgl/fonts/config-Inter-Medium36.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[main]
font=Inter-Medium.ttf
font_id_name=BAGL_FONT_INTER_MEDIUM_36px
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=28
# This font can display characters at y=-1 => we need to compensate that
baseline_offset=1
fontSize=36
lineSize=44
firstChar=0x20
lastChar=0x7E
firstLine=5
align=true
crop=true
bpp=4
nbgl=true
14 changes: 14 additions & 0 deletions lib_nbgl/fonts/config-Inter-Regular28-1bpp.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[main]
font=Inter-Regular.ttf
font_id_name=BAGL_FONT_INTER_REGULAR_28px_1bpp
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=22
fontSize=28
lineSize=36
firstChar=0x20
lastChar=0x7E
firstLine=5
align=true
crop=true
bpp=1
nbgl=true
14 changes: 14 additions & 0 deletions lib_nbgl/fonts/config-Inter-Regular28.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[main]
font=Inter-Regular.ttf
font_id_name=BAGL_FONT_INTER_REGULAR_28px
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=23
fontSize=28
lineSize=36
firstChar=0x20
lastChar=0x7E
firstLine=4
align=true
crop=true
bpp=4
nbgl=true
14 changes: 14 additions & 0 deletions lib_nbgl/fonts/config-Inter-SemiBold28-1bpp.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[main]
font=Inter-SemiBold.ttf
font_id_name=BAGL_FONT_INTER_SEMIBOLD_28px_1bpp
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=22
fontSize=28
lineSize=36
firstChar=0x20
lastChar=0x7E
firstLine=5
crop=false
align=true
bpp=1
nbgl=true
14 changes: 14 additions & 0 deletions lib_nbgl/fonts/config-Inter-SemiBold28.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[main]
font=Inter-SemiBold.ttf
font_id_name=BAGL_FONT_INTER_SEMIBOLD_28px
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=23
fontSize=28
lineSize=36
firstChar=0x20
lastChar=0x7E
firstLine=4
crop=true
bpp=4
align=true
nbgl=true
Loading

0 comments on commit 03619e0

Please sign in to comment.