summaryrefslogtreecommitdiff
path: root/components/rtgui/include
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-09-27 10:06:26 +0000
committerbernard.xiong <[email protected]>2010-09-27 10:06:26 +0000
commite5747e5b7b55d6a96a63ac41e891bb677c49abe9 (patch)
tree79b20e3eb676428d5a6c1b66b8f357653997d745 /components/rtgui/include
parent9238dbb7bf4b82f30faca95217fb11c88261f205 (diff)
update FreeType font support. And the default texture encode is GBK.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@964 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/include')
-rw-r--r--components/rtgui/include/rtgui/font_freetype.h10
-rw-r--r--components/rtgui/include/rtgui/rtgui_config.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/components/rtgui/include/rtgui/font_freetype.h b/components/rtgui/include/rtgui/font_freetype.h
new file mode 100644
index 0000000000..ced143ff07
--- /dev/null
+++ b/components/rtgui/include/rtgui/font_freetype.h
@@ -0,0 +1,10 @@
+#ifndef __RTGUI_FONT_TTF_H__
+#define __RTGUI_FONT_TTF_H__
+
+#include <rtgui/dc.h>
+#include <rtgui/font.h>
+
+rtgui_font_t* rtgui_freetype_font_create(const char* filename, int bold, int italic, rt_size_t size);
+void rtgui_freetype_font_destroy(rtgui_font_t* font);
+
+#endif
diff --git a/components/rtgui/include/rtgui/rtgui_config.h b/components/rtgui/include/rtgui/rtgui_config.h
index eb7ea19b16..1c69abec50 100644
--- a/components/rtgui/include/rtgui/rtgui_config.h
+++ b/components/rtgui/include/rtgui/rtgui_config.h
@@ -25,6 +25,8 @@
#define RTGUI_USING_FONT16
/* support Chinese font */
#define RTGUI_USING_FONTHZ
+ /* support FreeType TTF font */
+ #define RTGUI_USING_TTF
/* use small size in RTGUI */
#define RTGUI_USING_SMALL_SIZE
/* use mouse cursor */