Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new font sizes #501

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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