-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathafont.hpp
27 lines (25 loc) · 886 Bytes
/
afont.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
//=====================================================================//
/*! @file
@brief アスキーフォント定義
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2019, 2022 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=====================================================================//
#include <cstdint>
namespace graphics {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ASCII 無効フォント定義
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
class afont_null {
public:
static constexpr int8_t width = 0;
static constexpr int8_t height = 0;
static constexpr uint8_t* get(uint8_t code) { return nullptr; }
static constexpr int8_t get_width(uint8_t code) { return 0; }
};
}