comparison nuklear_ui/font_win.c @ 1547:cb12667aa83e

Remove some debug print stuff from font_win.c
author Michael Pavone <pavone@retrodev.com>
date Mon, 26 Mar 2018 21:39:18 -0700
parents 982c5327dfcc
children 137dbd05ceab
comparison
equal deleted inserted replaced
1546:1a09422b87a5 1547:cb12667aa83e
38 pref_name = metrics.lfMenuFont.lfFaceName; 38 pref_name = metrics.lfMenuFont.lfFaceName;
39 int32_t weight = metrics.lfMenuFont.lfWeight / 100; 39 int32_t weight = metrics.lfMenuFont.lfWeight / 100;
40 if (weight < 1 || weight > 9) { 40 if (weight < 1 || weight > 9) {
41 weight = 4; 41 weight = 4;
42 } 42 }
43 printf("Preferred family: %s, weight: %d\n", pref_name, weight);
44 pref_sub_families = weight_to_subfamilies[weight]; 43 pref_sub_families = weight_to_subfamilies[weight];
45 } 44 }
46 if (pref_name) { 45 if (pref_name) {
47 uint32_t prefix_len = 0; 46 uint32_t prefix_len = 0;
48 while (pref_name[prefix_len] && pref_name[prefix_len] != ' ') 47 while (pref_name[prefix_len] && pref_name[prefix_len] != ' ')
72 free(ext); 71 free(ext);
73 continue; 72 continue;
74 } 73 }
75 free(ext); 74 free(ext);
76 char *base = basename_no_extension(entries[i].name); 75 char *base = basename_no_extension(entries[i].name);
77 printf("basename: %s\n", base);
78 if (pref_prefix && !strncasecmp(base, pref_prefix, 6)) { 76 if (pref_prefix && !strncasecmp(base, pref_prefix, 6)) {
79 path = path_append(fonts, entries[i].name); 77 path = path_append(fonts, entries[i].name);
80 FILE *f = fopen(path, "rb"); 78 FILE *f = fopen(path, "rb");
81 if (f) 79 if (f)
82 { 80 {