libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
fontx.c
Go to the documentation of this file.
1#include <fontx.h>
2void AaddFontx(FontxFile *fx, const char *path){};
3void InitFontx(FontxFile *fxs, const char *f0, const char *f1){};
4bool OpenFontx(FontxFile *fx){};
5void CloseFontx(FontxFile *fx){};
6void DumpFontx(FontxFile *fxs){};
7uint8_t GetFontWidth(FontxFile *fx){};
8uint8_t GetFontHeight(FontxFile *fx){};
9bool GetFontx(FontxFile *fxs, uint8_t ascii, uint8_t *pGlyph, uint8_t *pw,
10 uint8_t *ph){};
11void UnderlineBitmap(uint8_t *line, uint8_t w, uint8_t h){};
12void ReversBitmap(uint8_t *line, uint8_t w, uint8_t h){};
13void ShowFont(uint8_t *fonts, uint8_t pw, uint8_t ph){};
14void ShowBitmap(uint8_t *bitmap, uint8_t pw, uint8_t ph){};
15uint8_t RotateByte(uint8_t ch){};
void AaddFontx(FontxFile *fx, const char *path)
Adds a font file to the given FontxFile structure.
Definition fontx.c:2
void DumpFontx(FontxFile *fxs)
Dumps the font data stored in the FontxFile structure.
Definition fontx.c:6
void InitFontx(FontxFile *fxs, const char *f0, const char *f1)
Initializes the given FontxFile structure with the specified font files.
Definition fontx.c:3
void CloseFontx(FontxFile *fx)
Closes the font file.
Definition fontx.c:5
void ShowBitmap(uint8_t *bitmap, uint8_t pw, uint8_t ph)
Displays a bitmap on the screen.
Definition fontx.c:14
bool GetFontx(FontxFile *fxs, uint8_t ascii, uint8_t *pGlyph, uint8_t *pw, uint8_t *ph)
Gets the glyph data for the specified ASCII character.
Definition fontx.c:9
uint8_t RotateByte(uint8_t ch)
Rotates a byte by 90 degrees.
Definition fontx.c:15
void ReversBitmap(uint8_t *line, uint8_t w, uint8_t h)
Reverses the bits in each byte of a bitmap.
Definition fontx.c:12
uint8_t GetFontWidth(FontxFile *fx)
Gets the width of a character in the font.
Definition fontx.c:7
void ShowFont(uint8_t *fonts, uint8_t pw, uint8_t ph)
Displays a font on the screen.
Definition fontx.c:13
bool OpenFontx(FontxFile *fx)
Opens the font file and reads the font data into the FontxFile structure.
Definition fontx.c:4
void UnderlineBitmap(uint8_t *line, uint8_t w, uint8_t h)
Adds an underline to a bitmap.
Definition fontx.c:11
uint8_t GetFontHeight(FontxFile *fx)
Gets the height of a character in the font.
Definition fontx.c:8
Struct representing a font file.
Definition fontx.h:28