Skip to content

Commit

Permalink
Merge pull request #503 from LedgerHQ/support-different-font-sizes
Browse files Browse the repository at this point in the history
Support different font sizes
  • Loading branch information
nroggeman-ledger authored Jan 15, 2024
2 parents 438bcdf + f23620e commit f6bdb7d
Show file tree
Hide file tree
Showing 177 changed files with 17,434 additions and 3,247 deletions.
Binary file removed lib_nbgl/fonts/HMAlphaMono-Medium.otf
Binary file not shown.
16 changes: 0 additions & 16 deletions lib_nbgl/fonts/config-HMAlphaMono-Medium32.ini

This file was deleted.

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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Loading

0 comments on commit f6bdb7d

Please sign in to comment.