1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: rxvtfont.C |
2 | * File: rxvtfont.C |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com> |
4 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
5 | * - original version. |
5 | * - original version. |
6 | * |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
9 | * the Free Software Foundation; either version 2 of the License, or |
… | |
… | |
308 | |
308 | |
309 | if (unicode <= 0x009f) |
309 | if (unicode <= 0x009f) |
310 | return true; |
310 | return true; |
311 | |
311 | |
312 | if (unicode >= 0x2500 && unicode <= 0x259f && |
312 | if (unicode >= 0x2500 && unicode <= 0x259f && |
313 | ! OPTION_R (Opt_skipBuiltinGlyphs)) |
313 | !r->option (Opt_skipBuiltinGlyphs)) |
314 | return true; |
314 | return true; |
315 | |
315 | |
316 | if (IS_COMPOSE (unicode)) |
316 | if (IS_COMPOSE (unicode)) |
317 | return true; |
317 | return true; |
318 | |
318 | |
… | |
… | |
354 | ; |
354 | ; |
355 | |
355 | |
356 | int width = text - tp; |
356 | int width = text - tp; |
357 | int fwidth = r->fwidth * width; |
357 | int fwidth = r->fwidth * width; |
358 | |
358 | |
359 | if (0x2500 <= t && t <= 0x259f && |
359 | if (0x2500 <= t && t <= 0x259f) |
360 | ! OPTION_R (Opt_skipBuiltinGlyphs)) |
|
|
361 | { |
360 | { |
362 | uint16_t offs = linedraw_offs[t - 0x2500]; |
361 | uint16_t offs = linedraw_offs[t - 0x2500]; |
363 | uint32_t *a = linedraw_command + (offs >> 4); |
362 | uint32_t *a = linedraw_command + (offs >> 4); |
364 | uint32_t *b = a + (offs & 15); |
363 | uint32_t *b = a + (offs & 15); |
365 | |
364 | |