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