23 lines
849 B
C
23 lines
849 B
C
// Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License.
|
|
// See LICENSE.md for license information.
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
// exampleFont.h - the examples' 5x7 font. JoeyLib draws no text of its own,
|
|
// so the examples that show words share this one: the digits, the letters
|
|
// (lower case drawn as upper case), and . , : ! ? - ' " / ; = + _ ( ),
|
|
// each on a 6-pixel advance. Any other character is drawn as a box.
|
|
|
|
#ifndef EXAMPLE_FONT_HEADER
|
|
#define EXAMPLE_FONT_HEADER
|
|
|
|
#include <joey/joey.h>
|
|
|
|
#define EXAMPLE_FONT_W 5
|
|
#define EXAMPLE_FONT_H 7
|
|
#define EXAMPLE_FONT_ADVANCE (EXAMPLE_FONT_W + 1)
|
|
|
|
// Draw text on s with its top-left corner at (x, y), in color; it stops at
|
|
// the surface's right edge.
|
|
void exampleFontDraw(jlSurfaceT *s, int16_t x, int16_t y, const char *text, uint8_t color);
|
|
|
|
#endif
|