Rev 4438 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4438 | Rev 5021 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include |
1 | #include |
2 | #include |
2 | #include |
3 | #include |
3 | #include |
4 | #include |
4 | #include |
5 | #include |
5 | //#include |
6 | //#include "font_droid.h" |
6 | //#include "font_droid.h" |
7 | #include |
7 | #include |
8 | #include FT_FREETYPE_H |
8 | #include FT_FREETYPE_H |
9 | #include |
9 | #include |
Line 133... | Line 133... | ||
133 | 133 | ||
Line 134... | Line 134... | ||
134 | // err = FT_New_Face( library, "/hd0/1/IstokWeb.ttf", 0, &face ); |
134 | // err = FT_New_Face( library, "/hd0/1/IstokWeb.ttf", 0, &face ); |
Line 135... | Line 135... | ||
135 | 135 | ||
136 | err = FT_New_Memory_Face( library, res_def_font, 277996, 0, &face ); |
136 | err = FT_New_Memory_Face( library, res_def_font, 277996, 0, &face ); |
137 | printf("err %d\n", err); |
137 | printf("err %d\n", err); |
138 | if ( err == FT_Err_Unknown_File_Format ) |
138 | if ( err == FT_Err_Unknown_File_Format ) |
139 | { |
139 | { |
140 | printf("font format is unsupported\n"); |
140 | printf("font format is unsupported\n"); |
Line 155... | Line 155... | ||
155 | 155 | ||
Line 156... | Line 156... | ||
156 | return (int)face; |
156 | return (int)face; |
157 | }; |
157 | }; |
Line 158... | Line -... | ||
158 | - | ||
159 | // draw_text(face,"/hd0/1/demo", 10, 80, 0x00000000); |
- | |
Line 160... | Line 158... | ||
160 | 158 | ||
161 | 159 | ||
162 | unsigned int ansi2utf32(unsigned char ch) |
160 | unsigned int ansi2utf32(unsigned char ch) |
163 | { |
161 | { |