Rev 2 | Rev 4 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 3 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | m_height (height), m_width (width), m_data(data) |
8 | m_height (height), m_width (width), m_data(data) |
9 | { |
9 | { |
10 | } |
10 | } |
11 | 11 | ||
12 | virtual char |
12 | virtual char |
13 | get_pixel (char c, int x, int y) =0 ; |
13 | getPixel (char c, int x, int y) =0 ; |
14 | 14 | ||
15 | // character width |
15 | // character width |
16 | int |
16 | int |
17 | width () |
17 | width () |
18 | { |
18 | { |
Line 28... | Line 28... | ||
28 | 28 | ||
29 | protected: |
29 | protected: |
30 | int const m_height; |
30 | int const m_height; |
31 | int const m_width; |
31 | int const m_width; |
32 | char const *m_data; |
32 | char const *m_data; |
33 | - | ||
34 | }; |
33 | }; |
35 | 34 | ||
36 | class font5x7_t : public font_t |
35 | class font5x7_t : public font_t |
37 | { |
36 | { |
38 | public: |
37 | public: |
Line 41... | Line 40... | ||
41 | { |
40 | { |
42 | } |
41 | } |
43 | ; |
42 | ; |
44 | 43 | ||
45 | char |
44 | char |
46 | get_pixel (char c, int x, int y) override; |
45 | getPixel (char c, int x, int y) override; |
47 | 46 | ||
48 | }; |
47 | }; |
49 | 48 | ||
50 | class font10x18_t : public font_t |
49 | class font10x18_t : public font_t |
51 | { |
50 | { |
Line 55... | Line 54... | ||
55 | { |
54 | { |
56 | } |
55 | } |
57 | ; |
56 | ; |
58 | 57 | ||
59 | char |
58 | char |
60 | get_pixel (char c, int x, int y) override; |
59 | getPixel (char c, int x, int y) override; |
61 | }; |
60 | }; |
62 | 61 | ||
63 | // defined fonts |
62 | // defined fonts |
64 | // original 5x7 |
63 | // original 5x7 |
65 | extern font5x7_t small_font; |
64 | extern font5x7_t small_font; |