-
-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): change gen_font.py and regen fonts
Change to the new structures and preserve manual changes. This commit also removes duplicated definition of nonprintable glyph for _UPPER fonts. [no changelog]
- Loading branch information
Showing
32 changed files
with
271 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
// This file is generated by core/tools/codegen/gen_font.py | ||
|
||
#include <stdint.h> | ||
#include "fonts_types.h" | ||
|
||
#if TREZOR_FONT_BPP != 1 | ||
#error Wrong TREZOR_FONT_BPP (expected 1) | ||
#endif | ||
#define Font_PixelOperator_Bold_8_HEIGHT 8 | ||
|
||
#define Font_PixelOperator_Bold_8_MAX_HEIGHT 8 | ||
#define Font_PixelOperator_Bold_8_BASELINE 1 | ||
extern const uint8_t* const Font_PixelOperator_Bold_8[126 + 1 - 32]; | ||
extern const uint8_t Font_PixelOperator_Bold_8_glyph_nonprintable[]; | ||
#define Font_PixelOperator_Bold_8_upper_HEIGHT 8 | ||
extern const font_info_t Font_PixelOperator_Bold_8_info; | ||
#define Font_PixelOperator_Bold_8_upper_MAX_HEIGHT 8 | ||
#define Font_PixelOperator_Bold_8_upper_BASELINE 1 | ||
extern const uint8_t* const Font_PixelOperator_Bold_8_upper[126 + 1 - 32]; | ||
extern const uint8_t Font_PixelOperator_Bold_8_upper_glyph_nonprintable[]; | ||
extern const font_info_t Font_PixelOperator_Bold_8_upper_info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
// This file is generated by core/tools/codegen/gen_font.py | ||
|
||
#include <stdint.h> | ||
#include "fonts_types.h" | ||
|
||
#if TREZOR_FONT_BPP != 1 | ||
#error Wrong TREZOR_FONT_BPP (expected 1) | ||
#endif | ||
#define Font_PixelOperator_Regular_8_HEIGHT 8 | ||
|
||
#define Font_PixelOperator_Regular_8_MAX_HEIGHT 8 | ||
#define Font_PixelOperator_Regular_8_BASELINE 1 | ||
extern const uint8_t* const Font_PixelOperator_Regular_8[126 + 1 - 32]; | ||
extern const uint8_t Font_PixelOperator_Regular_8_glyph_nonprintable[]; | ||
#define Font_PixelOperator_Regular_8_upper_HEIGHT 8 | ||
extern const font_info_t Font_PixelOperator_Regular_8_info; | ||
#define Font_PixelOperator_Regular_8_upper_MAX_HEIGHT 8 | ||
#define Font_PixelOperator_Regular_8_upper_BASELINE 1 | ||
extern const uint8_t* const Font_PixelOperator_Regular_8_upper[126 + 1 - 32]; | ||
extern const uint8_t Font_PixelOperator_Regular_8_upper_glyph_nonprintable[]; | ||
extern const font_info_t Font_PixelOperator_Regular_8_upper_info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// This file is generated by core/tools/codegen/gen_font.py | ||
|
||
#include <stdint.h> | ||
#include "fonts_types.h" | ||
|
||
#if TREZOR_FONT_BPP != 1 | ||
#error Wrong TREZOR_FONT_BPP (expected 1) | ||
#endif | ||
#define Font_PixelOperatorMono_Regular_8_HEIGHT 8 | ||
|
||
#define Font_PixelOperatorMono_Regular_8_MAX_HEIGHT 8 | ||
#define Font_PixelOperatorMono_Regular_8_BASELINE 1 | ||
extern const uint8_t* const Font_PixelOperatorMono_Regular_8[126 + 1 - 32]; | ||
extern const uint8_t Font_PixelOperatorMono_Regular_8_glyph_nonprintable[]; | ||
extern const font_info_t Font_PixelOperatorMono_Regular_8_info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// This file is generated by core/tools/codegen/gen_font.py | ||
|
||
#include <stdint.h> | ||
#include "fonts_types.h" | ||
|
||
#if TREZOR_FONT_BPP != 4 | ||
#error Wrong TREZOR_FONT_BPP (expected 4) | ||
#endif | ||
#define Font_Roboto_Bold_20_HEIGHT 20 | ||
|
||
#define Font_Roboto_Bold_20_MAX_HEIGHT 21 | ||
#define Font_Roboto_Bold_20_BASELINE 4 | ||
extern const uint8_t* const Font_Roboto_Bold_20[126 + 1 - 32]; | ||
extern const uint8_t Font_Roboto_Bold_20_glyph_nonprintable[]; | ||
extern const font_info_t Font_Roboto_Bold_20_info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// This file is generated by core/tools/codegen/gen_font.py | ||
|
||
#include <stdint.h> | ||
#include "fonts_types.h" | ||
|
||
#if TREZOR_FONT_BPP != 4 | ||
#error Wrong TREZOR_FONT_BPP (expected 4) | ||
#endif | ||
#define Font_Roboto_Regular_20_HEIGHT 20 | ||
|
||
#define Font_Roboto_Regular_20_MAX_HEIGHT 22 | ||
#define Font_Roboto_Regular_20_BASELINE 5 | ||
extern const uint8_t* const Font_Roboto_Regular_20[126 + 1 - 32]; | ||
extern const uint8_t Font_Roboto_Regular_20_glyph_nonprintable[]; | ||
extern const font_info_t Font_Roboto_Regular_20_info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// This file is generated by core/tools/codegen/gen_font.py | ||
|
||
#include <stdint.h> | ||
#include "fonts_types.h" | ||
|
||
#if TREZOR_FONT_BPP != 4 | ||
#error Wrong TREZOR_FONT_BPP (expected 4) | ||
#endif | ||
#define Font_RobotoMono_Medium_20_HEIGHT 20 | ||
|
||
#define Font_RobotoMono_Medium_20_MAX_HEIGHT 22 | ||
#define Font_RobotoMono_Medium_20_BASELINE 5 | ||
extern const uint8_t* const Font_RobotoMono_Medium_20[126 + 1 - 32]; | ||
extern const uint8_t Font_RobotoMono_Medium_20_glyph_nonprintable[]; | ||
extern const font_info_t Font_RobotoMono_Medium_20_info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// This file is generated by core/tools/codegen/gen_font.py | ||
|
||
#include <stdint.h> | ||
#include "fonts_types.h" | ||
|
||
#if TREZOR_FONT_BPP != 4 | ||
#error Wrong TREZOR_FONT_BPP (expected 4) | ||
#endif | ||
#define Font_RobotoMono_Medium_21_HEIGHT 21 | ||
|
||
#define Font_RobotoMono_Medium_21_MAX_HEIGHT 23 | ||
#define Font_RobotoMono_Medium_21_BASELINE 5 | ||
extern const uint8_t* const Font_RobotoMono_Medium_21[126 + 1 - 32]; | ||
extern const uint8_t Font_RobotoMono_Medium_21_glyph_nonprintable[]; | ||
extern const font_info_t Font_RobotoMono_Medium_21_info; |
Oops, something went wrong.