libpynq (release 5EWC0-2023 version 0.2.1 of 2023-09-01 11:02)
Loading...
Searching...
No Matches
fontx.c File Reference
#include "fontx.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/unistd.h>
Include dependency graph for fontx.c:

Go to the source code of this file.

Macros

#define FontxDebug   0
 

Functions

void AddFontx (FontxFile *fx, const char *path)
 
void InitFontx (FontxFile *fxs, const char *f0, const char *f1)
 
bool OpenFontx (FontxFile *fx)
 
void CloseFontx (FontxFile *fx)
 
void DumpFontx (FontxFile *fxs)
 
uint8_t getFortWidth (FontxFile *fx)
 
uint8_t getFortHeight (FontxFile *fx)
 
bool GetFontx (FontxFile *fxs, uint8_t ascii, uint8_t *pGlyph, uint8_t *pw, uint8_t *ph)
 
void Font2Bitmap (uint8_t *fonts, uint8_t *line, uint8_t w, uint8_t h, uint8_t inverse)
 
void UnderlineBitmap (uint8_t *line, uint8_t w, uint8_t h)
 
void ReversBitmap (uint8_t *line, uint8_t w, uint8_t h)
 
void ShowFont (uint8_t *fonts, uint8_t pw, uint8_t ph)
 
void ShowBitmap (uint8_t *bitmap, uint8_t pw, uint8_t ph)
 
uint8_t RotateByte (uint8_t ch1)
 

Macro Definition Documentation

◆ FontxDebug

#define FontxDebug   0

Definition at line 9 of file fontx.c.

Function Documentation

◆ AddFontx()

void AddFontx ( FontxFile fx,
const char *  path 
)

Definition at line 11 of file fontx.c.

Here is the caller graph for this function:

◆ getFortHeight()

uint8_t getFortHeight ( FontxFile fx)

Definition at line 93 of file fontx.c.

◆ getFortWidth()

uint8_t getFortWidth ( FontxFile fx)

Definition at line 88 of file fontx.c.