… | |
… | |
1672 | goto next_font; |
1672 | goto next_font; |
1673 | |
1673 | |
1674 | bool careful; |
1674 | bool careful; |
1675 | if (f->has_char (unicode, &prop, careful)) |
1675 | if (f->has_char (unicode, &prop, careful)) |
1676 | { |
1676 | { |
1677 | if (careful) |
1677 | i = (i << 1) | careful; |
1678 | i |= 128; |
|
|
1679 | |
1678 | |
1680 | goto found; |
1679 | goto found; |
1681 | } |
1680 | } |
1682 | |
1681 | |
1683 | next_font: |
1682 | next_font: |
… | |
… | |
1762 | } |
1761 | } |
1763 | |
1762 | |
1764 | int |
1763 | int |
1765 | rxvt_fontset::find_font (unicode_t unicode) |
1764 | rxvt_fontset::find_font (unicode_t unicode) |
1766 | { |
1765 | { |
1767 | int id = find_font_idx (unicode); |
1766 | return min<int> ((fontCount << 1) | 1, find_font_idx (unicode)); |
1768 | |
|
|
1769 | return min<int> (fontCount, id & 127) | (id & 128 ? Careful : 0); |
|
|
1770 | } |
1767 | } |
|
|
1768 | |