LEFT | RIGHT |
1 /* | 1 /* |
2 gcc main.c -I/usr/include/freetype2 -lfreetype && ./a.out 12 ../../testdata/luxi
sr.ttf with_hinting | 2 gcc main.c -I/usr/include/freetype2 -lfreetype && ./a.out 12 ../../testdata/luxi
sr.ttf with_hinting |
3 */ | 3 */ |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 #include <ft2build.h> | 6 #include <ft2build.h> |
7 #include FT_FREETYPE_H | 7 #include FT_FREETYPE_H |
8 | 8 |
9 void usage(char** argv) { | 9 void usage(char** argv) { |
10 printf("usage: %s font_size font_file [with_hinting|sans_hinting]\n", ar
gv[0]); | 10 printf("usage: %s font_size font_file [with_hinting|sans_hinting]\n", ar
gv[0]); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 o = &face->glyph->outline; | 64 o = &face->glyph->outline; |
65 for (j = 0; j < o->n_points; j++) { | 65 for (j = 0; j < o->n_points; j++) { |
66 if (j != 0) { | 66 if (j != 0) { |
67 printf(", "); | 67 printf(", "); |
68 } | 68 } |
69 printf("%ld %ld %d", o->points[j].x, o->points[j].y, o->
tags[j] & 0x01); | 69 printf("%ld %ld %d", o->points[j].x, o->points[j].y, o->
tags[j] & 0x01); |
70 } | 70 } |
71 printf("\n"); | 71 printf("\n"); |
72 } | 72 } |
| 73 return 0; |
73 } | 74 } |
LEFT | RIGHT |