libpynq
(release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
|
Go to the documentation of this file.
3 #define FontxGlyphBufSize (32 * 32 / 8)
23 typedef struct _IO_FILE
FILE;
130 void Font2Bitmap(uint8_t *fonts, uint8_t *line, uint8_t w, uint8_t h,
158 void ShowFont(uint8_t *fonts, uint8_t pw, uint8_t ph);
167 void ShowBitmap(uint8_t *bitmap, uint8_t pw, uint8_t ph);
void DumpFontx(FontxFile *fxs)
Dumps the font data stored in the FontxFile structure.
void UnderlineBitmap(uint8_t *line, uint8_t w, uint8_t h)
Adds an underline to a bitmap.
void ShowFont(uint8_t *fonts, uint8_t pw, uint8_t ph)
Displays a font on the screen.
void Font2Bitmap(uint8_t *fonts, uint8_t *line, uint8_t w, uint8_t h, uint8_t inverse)
Converts a font data buffer into a bitmap.
uint8_t GetFontHeight(FontxFile *fx)
Gets the height of a character in the font.
void ReversBitmap(uint8_t *line, uint8_t w, uint8_t h)
Reverses the bits in each byte of a bitmap.
uint8_t RotateByte(uint8_t ch)
Rotates a byte by 90 degrees.
void InitFontx(FontxFile *fxs, const char *f0, const char *f1)
Initializes the given FontxFile structure with the specified font files.
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.
bool OpenFontx(FontxFile *fx)
Opens the font file and reads the font data into the FontxFile structure.
void ShowBitmap(uint8_t *bitmap, uint8_t pw, uint8_t ph)
Displays a bitmap on the screen.
Struct representing a font file.
void AaddFontx(FontxFile *fx, const char *path)
Adds a font file to the given FontxFile structure.
void CloseFontx(FontxFile *fx)
Closes the font file.
uint8_t GetFontWidth(FontxFile *fx)
Gets the width of a character in the font.