summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/test.c b/test.c
index 4a475a6..f7ac802 100644
--- a/test.c
+++ b/test.c
@@ -88,10 +88,11 @@ main(int argc, char *argv[])
88 const char *wrapt = "word"; 88 const char *wrapt = "word";
89 /* end of wrap mode */ 89 /* end of wrap mode */
90 Eina_Bool plain_utf8 = EINA_FALSE; 90 Eina_Bool plain_utf8 = EINA_FALSE;
91 const char *extra_font_path = NULL;
91 92
92 opterr = 0; 93 opterr = 0;
93 94
94 while ((c = getopt (argc, argv, "w:h:f:l:r:p")) != -1) 95 while ((c = getopt (argc, argv, "w:h:f:l:r:e:p")) != -1)
95 { 96 {
96 switch (c) 97 switch (c)
97 { 98 {
@@ -130,6 +131,9 @@ main(int argc, char *argv[])
130 return 1; 131 return 1;
131 } 132 }
132 break; 133 break;
134 case 'e':
135 extra_font_path = optarg;
136 break;
133 case 'p': 137 case 'p':
134 plain_utf8 = EINA_TRUE; 138 plain_utf8 = EINA_TRUE;
135 break; 139 break;
@@ -173,6 +177,9 @@ main(int argc, char *argv[])
173 177
174 /* Interesting */ 178 /* Interesting */
175 179
180 if (extra_font_path)
181 evas_font_path_append(evas_object_evas_get(win), extra_font_path);
182
176 183
177 if (!strcmp(type, "evas")) 184 if (!strcmp(type, "evas"))
178 { 185 {
@@ -247,10 +254,11 @@ static void
247print_usage(const char *bin) 254print_usage(const char *bin)
248{ 255{
249 fprintf(stderr, 256 fprintf(stderr,
250 "Usage: %s [-p] [-w width] [-h height] [-f filename] [-l lib] [-r wrap]\n" 257 "Usage: %s [-p] [-w width] [-h height] [-f filename] [-l lib] [-r wrap] [-e extra_font_path]\n"
251 "-w,-h = size of window in pixels.\n" 258 "-w,-h = size of window in pixels.\n"
252 "-f = filename to use\n" 259 "-f = filename to use\n"
253 "-l = lib to use: evas, edje, or elm.\n" 260 "-l = lib to use: evas, edje, or elm.\n"
254 "-r = wrap type: none, char, word, or mixed.\n" 261 "-r = wrap type: none, char, word, or mixed.\n"
262 "-e = extra font path to search in..\n"
255 "-p = load as plain utf8 instead of markup.\n", bin); 263 "-p = load as plain utf8 instead of markup.\n", bin);
256} 264}