Commit f92917c8 authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

map weight attributes to the terminal's bold attribute.

* src/vte.c(_vte_terminal_apply_pango_attr): map weight attributes to the
	terminal's bold attribute.
parent c9a838b1
2003-09-11 nalin
* src/vte.c(_vte_terminal_apply_pango_attr): map weight attributes to
the terminal's bold attribute.
2003-09-11 nalin
* src/vte.c(_vte_terminal_map_pango_color): add.
* src/vte.c(vte_terminal_im_preedit_changed): don't discard the
......
......@@ -13044,6 +13044,15 @@ _vte_terminal_apply_pango_attr(VteTerminal *terminal, PangoAttribute *attr,
cells[i].underline = (ival != PANGO_UNDERLINE_NONE);
}
break;
case PANGO_ATTR_WEIGHT:
attrint = (PangoAttrInt*) attr;
ival = attrint->value;
for (i = attr->start_index;
(i < attr->end_index) && (i < n_cells);
i++) {
cells[i].bold = (ival >= PANGO_WEIGHT_BOLD);
}
break;
default:
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment