Changeset c6c39d4f in mainline
- Timestamp:
- 2014-08-31T08:25:54Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d3512f1
- Parents:
- 794e368
- Location:
- uspace
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fontviewer/fontviewer.c
r794e368 rc6c39d4f 47 47 #include <drawctx.h> 48 48 #include <font/embedded.h> 49 #include <font/pcf.h> 49 50 #include <stdarg.h> 50 51 #include <io/verify.h> … … 61 62 uint16_t points = 16; 62 63 bool show_metrics = true; 64 char *font_path = NULL; 63 65 64 66 static int draw(void); … … 105 107 static int create_font(font_t **font, uint16_t points) 106 108 { 107 return embedded_font_create(font, points); 109 if (font_path == NULL) { 110 return embedded_font_create(font, points); 111 } 112 113 return pcf_font_create(font, font_path, points); 108 114 } 109 115 … … 248 254 249 255 if (argc < 3) { 250 printf("No image files specified.\n"); 251 return 1; 256 font_path = NULL; 257 } 258 else { 259 font_path = argv[2]; 252 260 } 253 261 -
uspace/app/init/init.c
r794e368 rc6c39d4f 356 356 gui_start("/app/vlaunch", HID_COMPOSITOR_SERVER); 357 357 gui_start("/app/vterm", HID_COMPOSITOR_SERVER); 358 task_spawnl(NULL, NULL, "/app/fontviewer", "/app/fontviewer", "comp:0/winreg", "/cu12.pcf", NULL);359 358 } 360 359 -
uspace/lib/draw/Makefile
r794e368 rc6c39d4f 38 38 font/embedded.c \ 39 39 font/bitmap_backend.c \ 40 font/pcf.c \ 40 41 gfx/font-8x16.c \ 41 42 gfx/cursor-11x18.c \
Note:
See TracChangeset
for help on using the changeset viewer.