parent
cd315788c8
commit
fbc486189b
10 changed files with 0 additions and 7266 deletions
|
|
@ -1,8 +0,0 @@
|
|||
#ifndef _EXTRAS_FONTS_CONFIG_H_
|
||||
#define _EXTRAS_FONTS_CONFIG_H_
|
||||
|
||||
#ifndef NUM_FONTS
|
||||
#define NUM_FONTS 3
|
||||
#endif
|
||||
|
||||
#endif /* _EXTRAS_FONTS_CONFIG_H_ */
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* oled_fonts.c
|
||||
*
|
||||
* Created on: 8 dec. 2016
|
||||
* Author: zaltora
|
||||
*/
|
||||
#include "fonts.h"
|
||||
|
||||
extern const font_info_t glcd_5x7_font_info;
|
||||
extern const font_info_t tahoma_8pt_font_info;
|
||||
extern const font_info_t tahoma_16ptFontInfo;
|
||||
|
||||
const font_info_t* fonts[NUM_FONTS] =
|
||||
{
|
||||
&glcd_5x7_font_info,
|
||||
&tahoma_8pt_font_info,
|
||||
&tahoma_16ptFontInfo,
|
||||
};
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
* fonts.h
|
||||
*
|
||||
* Created on: 8 dec. 2016
|
||||
* Author: zaltora
|
||||
*/
|
||||
|
||||
#ifndef FONTS_H
|
||||
#define FONTS_H
|
||||
|
||||
#include <FreeRTOS.h>
|
||||
#include "config.h"
|
||||
|
||||
/**
|
||||
* Character descriptor
|
||||
*/
|
||||
typedef struct _font_char_desc
|
||||
{
|
||||
uint8_t width; //Character width in pixel
|
||||
uint16_t offset; //Offset of this character in bitmap
|
||||
} font_char_desc_t;
|
||||
|
||||
/**
|
||||
* Font information
|
||||
*/
|
||||
typedef struct _font_info
|
||||
{
|
||||
uint8_t height; //Character height in pixel, all characters have same height
|
||||
uint8_t c; //Simulation of "C" width in TrueType term, the space between adjacent characters
|
||||
char char_start; //First character
|
||||
char char_end; //Last character
|
||||
const font_char_desc_t* char_descriptors; //descriptor for each character
|
||||
const uint8_t *bitmap; //Character bitmap
|
||||
} font_info_t;
|
||||
|
||||
extern const font_info_t* fonts[NUM_FONTS]; //Built-in fonts
|
||||
|
||||
#endif // _FONTS__H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue