2018-02-21 19:36:38 +08:00
|
|
|
/**
|
|
|
|
* File: font_gen.h
|
|
|
|
* Author: Li XianJing <xianjimli@hotmail.com>
|
|
|
|
* Brief: bitmap font generator
|
|
|
|
*
|
|
|
|
* Copyright (c) 2018 - 2018 Li XianJing <xianjimli@hotmail.com>
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* License file for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* History:
|
|
|
|
* ================================================================
|
|
|
|
* 2018-01-21 Li XianJing <xianjimli@hotmail.com> created
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FONT_GEN_H
|
|
|
|
#define FONT_GEN_H
|
|
|
|
|
|
|
|
#include "base/font.h"
|
|
|
|
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
2018-03-18 11:29:31 +08:00
|
|
|
ret_t font_gen(font_t* font, uint16_t font_size, const char* str, const char* output_filename);
|
|
|
|
uint32_t font_gen_buff(font_t* font, uint16_t font_size, const char* str, uint8_t* output_buff, uint32_t buff_size);
|
2018-02-21 19:36:38 +08:00
|
|
|
|
|
|
|
END_C_DECLS
|
|
|
|
|
|
|
|
#endif/*FONT_GEN_H*/
|
|
|
|
|