Use JINJA_FILE_SEARCHPATH variable so the fonts will also be found when built as a library.
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
|
||||
namespace raid
|
||||
{
|
||||
extern const std::array<std::uint8_t, NOTO_SANS_SIZE> NOTO_SANS_DATA = { {{ file_content_hex('#res/fonts/NotoSans-Regular.ttf') }} };
|
||||
extern const std::array<std::uint8_t, NOTO_SANS_SIZE> NOTO_SANS_DATA = { {{ file_content_hex('res/fonts/NotoSans-Regular.ttf') }} };
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
namespace raid
|
||||
{
|
||||
inline constexpr std::size_t NOTO_SANS_SIZE = {{ file_size('#res/fonts/NotoSans-Regular.ttf' )}};
|
||||
inline constexpr std::size_t NOTO_SANS_SIZE = {{ file_size('res/fonts/NotoSans-Regular.ttf' )}};
|
||||
extern const std::array<std::uint8_t, NOTO_SANS_SIZE> NOTO_SANS_DATA;
|
||||
} // namespace raid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user