Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added lib_nbgl/fonts/Kanit-Medium.ttf
Binary file not shown.
Binary file added lib_nbgl/fonts/Kanit-Regular.ttf
Binary file not shown.
Binary file added lib_nbgl/fonts/Kanit-SemiBold.ttf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions lib_nbgl/fonts/config-Inter-Medium32-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
[main]
font=Inter-Medium.ttf
font_id_name=BAGL_FONT_INTER_MEDIUM_32px_1bpp
fontSize=32
lineSize=40
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=26
# This font can display characters at y=-1 => we need to compensate that
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=1
fontSize=32
lineSize=40
firstChar=0x20
lastChar=0x7E
firstLine=5
align=true
crop=true
bpp=1
nbgl=true

[thai]
font=Kanit-Medium.ttf
fontSize=32
lineSize=42
18 changes: 12 additions & 6 deletions lib_nbgl/fonts/config-Inter-Medium32.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
[main]
font=Inter-Medium.ttf
font_id_name=BAGL_FONT_INTER_MEDIUM_32px
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=24
# This font can display characters at y=-1 => we need to compensate that
baseline_offset=1
fontSize=32
lineSize=40
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=25
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=1
firstChar=0x20
lastChar=0x7E
firstLine=5
align=true
crop=true
bpp=4
nbgl=true

[thai]
font=Kanit-Medium.ttf
fontSize=32
lineSize=42
17 changes: 12 additions & 5 deletions lib_nbgl/fonts/config-Inter-Medium36-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
[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=29
# This font can display characters at y=-1 => we need to compensate that
baseline_offset=1
fontSize=36
lineSize=40
bottom_offset=2
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=28
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=-3
firstChar=0x20
lastChar=0x7E
crop=true
bpp=1
nbgl=true

[thai]
font=Kanit-Medium.ttf
fontSize=36
lineSize=42
17 changes: 12 additions & 5 deletions lib_nbgl/fonts/config-Inter-Medium36.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
[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=29
# This font can display characters at y=-1 => we need to compensate that
baseline_offset=1
fontSize=36
lineSize=40
bottom_offset=2
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=28
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=-2
firstChar=0x20
lastChar=0x7E
crop=true
bpp=4
nbgl=true

[thai]
font=Kanit-Medium.ttf
fontSize=36
lineSize=42
16 changes: 12 additions & 4 deletions lib_nbgl/fonts/config-Inter-Regular24-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
[main]
font=Inter-Regular.ttf
font_id_name=BAGL_FONT_INTER_REGULAR_24px_1bpp
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=18
fontSize=24
lineSize=32
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=18
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=0
firstChar=0x20
lastChar=0x7E
firstLine=5
align=true
crop=true
bpp=1
nbgl=true

[thai]
font=Kanit-Regular.ttf
fontSize=24
lineSize=32
16 changes: 12 additions & 4 deletions lib_nbgl/fonts/config-Inter-Regular24.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
[main]
font=Inter-Regular.ttf
font_id_name=BAGL_FONT_INTER_REGULAR_24px
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=19
fontSize=24
lineSize=32
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=19
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=0
firstChar=0x20
lastChar=0x7E
firstLine=4
align=true
crop=true
bpp=4
nbgl=true

[thai]
font=Kanit-Regular.ttf
fontSize=24
lineSize=32
15 changes: 12 additions & 3 deletions lib_nbgl/fonts/config-Inter-Regular28-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
[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
bottom_offset=1
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=22
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=0
firstChar=0x20
lastChar=0x7E
crop=true
bpp=1
nbgl=true

[thai]
font=Kanit-Regular.ttf
fontSize=28
lineSize=36
15 changes: 12 additions & 3 deletions lib_nbgl/fonts/config-Inter-Regular28.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
[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
bottom_offset=1
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=22
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=-2
firstChar=0x20
lastChar=0x7E
crop=true
bpp=4
nbgl=true

[thai]
font=Kanit-Regular.ttf
fontSize=28
lineSize=36
19 changes: 15 additions & 4 deletions lib_nbgl/fonts/config-Inter-SemiBold24-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
[main]
font=Inter-SemiBold.ttf
font_id_name=BAGL_FONT_INTER_SEMIBOLD_24px_1bpp
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=18
fontSize=24
lineSize=32
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=18
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=0
firstChar=0x20
lastChar=0x7E
firstLine=5
# This font is used on side screen of the Stax => don't crop!
crop=false
align=true
bpp=1
nbgl=true

[thai]
# If not specified, values are identical to the ones of [main] section
font=Kanit-SemiBold.ttf
fontSize=24
lineSize=32
crop=true
16 changes: 12 additions & 4 deletions lib_nbgl/fonts/config-Inter-SemiBold24.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
[main]
font=Inter-SemiBold.ttf
font_id_name=BAGL_FONT_INTER_SEMIBOLD_24px
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=19
fontSize=24
lineSize=32
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=19
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=0
firstChar=0x20
lastChar=0x7E
firstLine=4
crop=true
bpp=4
align=true
nbgl=true

[thai]
font=Kanit-SemiBold.ttf
fontSize=24
lineSize=32
17 changes: 13 additions & 4 deletions lib_nbgl/fonts/config-Inter-SemiBold28-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
[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
bottom_offset=1
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=22
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=0
firstChar=0x20
lastChar=0x7E
crop=false
crop=true
bpp=1
nbgl=true

[thai]
font=Kanit-SemiBold.ttf
fontSize=28
lineSize=36
16 changes: 13 additions & 3 deletions lib_nbgl/fonts/config-Inter-SemiBold28.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
[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
bottom_offset=1
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=22
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=-3
firstChar=0x20

lastChar=0x7E
crop=true
bpp=4
nbgl=true

[thai]
font=Kanit-SemiBold.ttf
fontSize=28
lineSize=36
15 changes: 12 additions & 3 deletions lib_nbgl/fonts/config-NanoDisplay-SemiBold24-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
[main]
font=NanoDisplay-SemiBold.ttf
font_id_name=BAGL_FONT_NANODISPLAY_SEMIBOLD_24px_1bpp
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=24
fontSize=24
lineSize=28
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=23
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=-1
firstChar=0x20
lastChar=0x7E
crop=true
align=true
bpp=1
nbgl=true
rle=false

[thai]
font=Kanit-SemiBold.ttf
fontSize=24
lineSize=30
14 changes: 12 additions & 2 deletions lib_nbgl/fonts/config-NanoText-Bold18-1bpp.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
[main]
font=NanoText-Bold.ttf
font_id_name=BAGL_FONT_NANOTEXT_BOLD_18px_1bpp
# Distance of the baseline from the top of the loaded pictures
loaded_baseline=18
fontSize=18
lineSize=22
# Distance of the baseline from the top of the loaded pictures
# (should be the same value than baseline of the font - usually called 'ascent')
# if baseline_offset != 0 then real baseline is loaded_baseline + baseline_offset
loaded_baseline=18
# Some fonts display some characters at y < 0 or at y > lineSize
# To compensate that, we should set baseline_offset with the value suggested by ttf2inc
baseline_offset=0
firstChar=0x20
lastChar=0x7E
crop=true
bpp=1
nbgl=true
rle=false

[thai]
font=Kanit-SemiBold.ttf
fontSize=18
lineSize=24
Loading
Loading