2018-02-21 19:36:38 +08:00
|
|
|
/**
|
|
|
|
* File: font_gen.h
|
2018-05-15 09:31:58 +08:00
|
|
|
* Author: AWTK Develop Team
|
2018-02-21 19:36:38 +08:00
|
|
|
* Brief: bitmap font generator
|
|
|
|
*
|
2024-03-27 11:36:42 +08:00
|
|
|
* Copyright (c) 2018 - 2024 Guangzhou ZHIYUAN Electronics Co.,Ltd.
|
2018-02-21 19:36:38 +08:00
|
|
|
*
|
|
|
|
* 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"
|
2021-12-15 09:30:30 +08:00
|
|
|
#include "tkc/str.h"
|
2020-07-09 17:32:41 +08:00
|
|
|
#include "tkc/buffer.h"
|
2021-12-21 10:16:05 +08:00
|
|
|
#include "preprocess_text.h"
|
2018-02-21 19:36:38 +08:00
|
|
|
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
2021-12-19 11:36:40 +08:00
|
|
|
ret_t font_gen(font_t* font, uint16_t font_size, glyph_format_t format, const char* str,
|
2023-11-13 18:25:24 +08:00
|
|
|
const char* output_filename, const char* theme, const char* res_dir);
|
2021-12-15 09:30:30 +08:00
|
|
|
/*public for test*/
|
2021-12-19 11:36:40 +08:00
|
|
|
uint32_t font_gen_buff(font_t* font, uint16_t font_size, glyph_format_t format, const char* str,
|
|
|
|
wbuffer_t* wbuffer);
|
2018-02-21 19:36:38 +08:00
|
|
|
|
|
|
|
END_C_DECLS
|
|
|
|
|
2018-03-19 07:19:25 +08:00
|
|
|
#endif /*FONT_GEN_H*/
|