EU1KY AA
font.c File Reference
#include "font.h"
#include "fran.h"
#include "franbig.h"
#include "consbig.h"
#include "sdigits.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>

Data Structures

struct  _fontparams
 

Functions

static void FONT_DrawByte (uint8_t byte, uint8_t nBits, LCDColor fg, uint16_t x, uint16_t y)
 
static void FONT_GetParams (FONTS fnt, struct _fontparams *pRes)
 
uint16_t FONT_GetHeight (FONTS fnt)
 
int FONT_Write (FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char *pStr)
 
void FONT_ClearLine (FONTS fnt, LCDColor bg, uint16_t y0)
 
void FONT_ClearHalfLine (FONTS fnt, LCDColor bg, uint16_t y0)
 
int FONT_Write_N (FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char *pStr, int nChars)
 
void FONT_SetAttributes (FONTS fnt, LCDColor fg, LCDColor bg)
 
int FONT_Printf (uint16_t x, uint16_t y, const char *fmt,...)
 
int FONT_Print (FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char *fmt,...)
 
int FONT_GetStrPixelWidth (FONTS fnt, const char *pStr)
 

Variables

static LCDColor _fgColor = LCD_WHITE
 
static LCDColor _bgColor = LCD_BLACK
 
static FONTS _font = FONT_FRAN
 
static char tmpBuf [256]
 

Function Documentation

void FONT_ClearHalfLine ( FONTS  fnt,
LCDColor  bg,
uint16_t  y0 
)
void FONT_ClearLine ( FONTS  fnt,
LCDColor  bg,
uint16_t  y0 
)
static void FONT_DrawByte ( uint8_t  byte,
uint8_t  nBits,
LCDColor  fg,
uint16_t  x,
uint16_t  y 
)
static
uint16_t FONT_GetHeight ( FONTS  fnt)
static void FONT_GetParams ( FONTS  fnt,
struct _fontparams pRes 
)
static
int FONT_GetStrPixelWidth ( FONTS  fnt,
const char *  pStr 
)
int FONT_Print ( FONTS  fnt,
LCDColor  fg,
LCDColor  bg,
uint16_t  x,
uint16_t  y,
const char *  fmt,
  ... 
)
int FONT_Printf ( uint16_t  x,
uint16_t  y,
const char *  fmt,
  ... 
)
void FONT_SetAttributes ( FONTS  fnt,
LCDColor  fg,
LCDColor  bg 
)
int FONT_Write ( FONTS  fnt,
LCDColor  fg,
LCDColor  bg,
uint16_t  x,
uint16_t  y,
const char *  pStr 
)
int FONT_Write_N ( FONTS  fnt,
LCDColor  fg,
LCDColor  bg,
uint16_t  x,
uint16_t  y,
const char *  pStr,
int  nChars 
)

Variable Documentation

LCDColor _bgColor = LCD_BLACK
static
LCDColor _fgColor = LCD_WHITE
static
FONTS _font = FONT_FRAN
static
char tmpBuf[256]
static