Mercurial > aewl
comparison draw.c @ 613:5f4bb0a58f32
enforcing using fontsets even if they are incomplete for some encodings
author | arg@mig29 |
---|---|
date | Tue, 05 Dec 2006 10:30:31 +0100 |
parents | ecfc43176b2d |
children | 9ae187cb9ea8 |
comparison
equal
deleted
inserted
replaced
612:762c339325b3 | 613:5f4bb0a58f32 |
---|---|
177 dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); | 177 dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |
178 if(missing) { | 178 if(missing) { |
179 while(n--) | 179 while(n--) |
180 fprintf(stderr, "missing fontset: %s\n", missing[n]); | 180 fprintf(stderr, "missing fontset: %s\n", missing[n]); |
181 XFreeStringList(missing); | 181 XFreeStringList(missing); |
182 if(dc.font.set) { | |
183 XFreeFontSet(dpy, dc.font.set); | |
184 dc.font.set = NULL; | |
185 } | |
186 } | 182 } |
187 if(dc.font.set) { | 183 if(dc.font.set) { |
188 XFontSetExtents *font_extents; | 184 XFontSetExtents *font_extents; |
189 XFontStruct **xfonts; | 185 XFontStruct **xfonts; |
190 char **font_names; | 186 char **font_names; |