… | |
… | |
275 | |
275 | |
276 | bool has_codepoint (uint32_t unicode) |
276 | bool has_codepoint (uint32_t unicode) |
277 | { |
277 | { |
278 | if (unicode <= 0x001f) |
278 | if (unicode <= 0x001f) |
279 | return true; |
279 | return true; |
|
|
280 | |
280 | if (unicode >= 0x0080 && unicode <= 0x009f) |
281 | if (unicode >= 0x0080 && unicode <= 0x009f) |
281 | return true; |
282 | return true; |
282 | |
283 | |
283 | if (unicode >= 0x2500 && unicode <= 0x257f |
284 | if (unicode >= 0x2500 && unicode <= 0x257f |
284 | && linedraw_cmds[unicode - 0x2500]) |
285 | && linedraw_cmds[unicode - 0x2500]) |
|
|
286 | return true; |
|
|
287 | |
|
|
288 | if (IS_PSEUDO (unicode)) |
285 | return true; |
289 | return true; |
286 | |
290 | |
287 | switch (unicode) |
291 | switch (unicode) |
288 | { |
292 | { |
289 | case ZERO_WIDTH_CHAR: |
293 | case ZERO_WIDTH_CHAR: |
… | |
… | |
344 | } |
348 | } |
345 | } |
349 | } |
346 | |
350 | |
347 | gcv.line_width = 0; |
351 | gcv.line_width = 0; |
348 | XChangeGC (d.display->display, GC, GCLineWidth, &gcv); |
352 | XChangeGC (d.display->display, GC, GCLineWidth, &gcv); |
|
|
353 | } |
|
|
354 | else if (IS_PSEUDO (t)) |
|
|
355 | { |
|
|
356 | const compose_char &cc = r->composite (t); |
|
|
357 | (void)0; //D ADD pseudo handling here |
349 | } |
358 | } |
350 | else |
359 | else |
351 | switch (t) |
360 | switch (t) |
352 | { |
361 | { |
353 | case ZERO_WIDTH_CHAR: |
362 | case ZERO_WIDTH_CHAR: |
… | |
… | |
1097 | |
1106 | |
1098 | bool |
1107 | bool |
1099 | rxvt_fontset::populate (const char *desc) |
1108 | rxvt_fontset::populate (const char *desc) |
1100 | { |
1109 | { |
1101 | clear (); |
1110 | clear (); |
1102 | printf ("P(%s)\n",desc); |
|
|
1103 | |
1111 | |
1104 | fonts.push_back (new_font (0, CS_UNICODE)); |
1112 | fonts.push_back (new_font (0, CS_UNICODE)); |
1105 | realize_font (0); |
1113 | realize_font (0); |
1106 | |
1114 | |
1107 | add_fonts (desc); |
1115 | add_fonts (desc); |