mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 08:43:40 -07:00
* xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
weight when testing attributes (Bug#3282).
This commit is contained in:
parent
05be46d79e
commit
337fbd1718
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2009-05-14 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
|
||||
weight when testing attributes (Bug#3282).
|
||||
|
||||
2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
|
||||
|
||||
* gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
|
||||
|
|
|
|||
|
|
@ -5175,8 +5175,9 @@ tty_supports_face_attributes_p (f, attrs, def_face)
|
|||
/* Test for terminal `capabilities' (non-color character attributes). */
|
||||
|
||||
/* font weight (bold/dim) */
|
||||
weight = FONT_WEIGHT_NAME_NUMERIC (attrs[LFACE_WEIGHT_INDEX]);
|
||||
if (weight >= 0)
|
||||
val = attrs[LFACE_WEIGHT_INDEX];
|
||||
if (!UNSPECIFIEDP (val)
|
||||
&& (weight = FONT_WEIGHT_NAME_NUMERIC (val), weight >= 0))
|
||||
{
|
||||
int def_weight = FONT_WEIGHT_NAME_NUMERIC (def_attrs[LFACE_WEIGHT_INDEX]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue