更新fontlibrary.c模块和头文件

This commit is contained in:
Liu Chao
2013-02-07 20:31:11 +08:00
parent 52d67ffb7a
commit 91efbc0b00
6 changed files with 239 additions and 54 deletions
+1 -1
View File
@@ -42,13 +42,13 @@
#define __LCUI_FONT_H__
#include <stdint.h>
LCUI_BEGIN_HEADER
#include LC_CHARSET_H
#include LC_FONTBMP_H
#include LC_TEXTSTYLE_H
#include LC_TEXTLAYER_H
#include LC_FONTLIB_H
LCUI_END_HEADER
+1 -1
View File
@@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS=foreign
# Headers to install
pkginclude_HEADERS = textlayer.h textstyle.h bitmapfont.h charset.h
pkginclude_HEADERS = fontlibrary.h textlayer.h textstyle.h bitmapfont.h charset.h
pkgincludedir=$(prefix)/include/LCUI/font
+1 -1
View File
@@ -207,7 +207,7 @@ top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = foreign
# Headers to install
pkginclude_HEADERS = textlayer.h textstyle.h bitmapfont.h charset.h
pkginclude_HEADERS = fontlibrary.h textlayer.h textstyle.h bitmapfont.h charset.h
all: all-am
.SUFFIXES:
+34
View File
@@ -0,0 +1,34 @@
#ifndef __LCUI_FONT_LIBRARY_H__
#define __LCUI_FONT_LIBRARY_H__
LCUI_BEGIN_HEADER
void FontLIB_DestroyAll( void );
/* 初始化字体数据库 */
void FontLIB_Init( void );
/* 获取字体的风格ID */
int FontLIB_GetStyleID( const char *style_name );
/* 获取字体的字族ID */
int FontLIB_GetFamliyID( const char *famliy_name );
/*
* 添加一个字体位图数据至数据库中
* 注意:调用此函数后,作为参数fontbmp_buff的变量,不能被free掉,否则,数据库中记录
* 的此数据会无效
* */
LCUI_FontBMP *
FontLIB_Add( wchar_t char_code, int famliy_id,
int style_id, int pixel_size,
LCUI_FontBMP *fontbmp_buff );
/* 获取字体位图数据 */
LCUI_FontBMP *
FontLIB_GetFontBMP( wchar_t char_code, int famliy_id,
int style_id, int pixel_size );
LCUI_END_HEADER
#endif
+1
View File
@@ -67,6 +67,7 @@
#define LC_MISC_H <LCUI/LCUI_Misc.h>
#define LC_FONT_H <LCUI/LCUI_Font.h>
#define LC_FONTLIB_H <LCUI/font/fontlibrary.h>
#define LC_GRAPH_H <LCUI/LCUI_Graph.h>
#define LC_GRAPH_HPP <LCUI/LCUI_Graph.hpp>
#define LC_DRAW_H <LCUI/LCUI_Draw.h>