mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
添加FontLIB_GetLibrary函数
This commit is contained in:
@@ -49,6 +49,11 @@ LCUI_EXPORT(void) FontLIB_DestroyAll( void );
|
||||
/* 初始化字体数据库 */
|
||||
LCUI_EXPORT(void) FontLIB_Init( void );
|
||||
|
||||
#ifdef LCUI_FONT_ENGINE_FREETYPE
|
||||
/* 获取FT库句柄 */
|
||||
LCUI_EXPORT(FT_Library) FontLIB_GetLibrary(void);
|
||||
#endif
|
||||
|
||||
/* 通过字体文件路径来查找字体信息,并获取字体ID */
|
||||
LCUI_EXPORT(int) FontLIB_FindInfoByFilePath( const char *filepath );
|
||||
|
||||
|
||||
@@ -157,6 +157,13 @@ FontLIB_Init( void )
|
||||
database_init = TRUE;
|
||||
}
|
||||
|
||||
#ifdef LCUI_FONT_ENGINE_FREETYPE
|
||||
/* 获取FT库句柄 */
|
||||
LCUI_EXPORT(FT_Library) FontLIB_GetLibrary(void) {
|
||||
return library;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* 通过字体文件路径来查找字体信息,并获取字体ID */
|
||||
LCUI_EXPORT(int)
|
||||
FontLIB_FindInfoByFilePath( const char *filepath )
|
||||
|
||||
Reference in New Issue
Block a user