comparison src/font.c @ 95886:c8bc52f94b6d

(syms_of_font) <font-weight-table, font-slant-table, font-width-table>: Fix typos in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 13 Jun 2008 09:47:04 +0000
parents d56319d0f726
children ff04c95494e4
comparison
equal deleted inserted replaced
95885:e858e5baf5b6 95886:c8bc52f94b6d
1567 Lisp_Object family; 1567 Lisp_Object family;
1568 family = font_intern_prop (name, family_end - name, 1); 1568 family = font_intern_prop (name, family_end - name, 1);
1569 ASET (font, FONT_FAMILY_INDEX, family); 1569 ASET (font, FONT_FAMILY_INDEX, family);
1570 } 1570 }
1571 } 1571 }
1572 1572
1573 return 0; 1573 return 0;
1574 } 1574 }
1575 1575
1576 /* Store fontconfig's font name of FONT (font-spec or font-entity) in 1576 /* Store fontconfig's font name of FONT (font-spec or font-entity) in
1577 NAME (NBYTES length), and return the name length. If 1577 NAME (NBYTES length), and return the name length. If
4548 struct table_entry *entry; 4548 struct table_entry *entry;
4549 int nelement; 4549 int nelement;
4550 { 4550 {
4551 int i, j; 4551 int i, j;
4552 Lisp_Object table, elt; 4552 Lisp_Object table, elt;
4553 4553
4554 table = Fmake_vector (make_number (nelement), Qnil); 4554 table = Fmake_vector (make_number (nelement), Qnil);
4555 for (i = 0; i < nelement; i++) 4555 for (i = 0; i < nelement; i++)
4556 { 4556 {
4557 for (j = 0; entry[i].names[j]; j++); 4557 for (j = 0; entry[i].names[j]; j++);
4558 elt = Fmake_vector (make_number (j + 1), Qnil); 4558 elt = Fmake_vector (make_number (j + 1), Qnil);
4559 ASET (elt, 0, make_number (entry[i].numeric)); 4559 ASET (elt, 0, make_number (entry[i].numeric));
4560 for (j = 0; entry[i].names[j]; j++) 4560 for (j = 0; entry[i].names[j]; j++)
4561 ASET (elt, j + 1, intern (entry[i].names[j])); 4561 ASET (elt, j + 1, intern (entry[i].names[j]));
4562 ASET (table, i, elt); 4562 ASET (table, i, elt);
4563 } 4563 }
4564 return table; 4564 return table;
4565 } 4565 }
4566 4566
4735 4735
4736 DEFVAR_LISP_NOPRO ("font-weight-table", &Vfont_weight_table, 4736 DEFVAR_LISP_NOPRO ("font-weight-table", &Vfont_weight_table,
4737 doc: /* Vector of valid font weight values. 4737 doc: /* Vector of valid font weight values.
4738 Each element has the form: 4738 Each element has the form:
4739 [NUMERIC-VALUE SYMBOLIC-NAME ALIAS-NAME ...] 4739 [NUMERIC-VALUE SYMBOLIC-NAME ALIAS-NAME ...]
4740 NUMERIC-VALUE is an integer, and SYMBOLIC-NAME and ALIAS-NAME are symobls. */); 4740 NUMERIC-VALUE is an integer, and SYMBOLIC-NAME and ALIAS-NAME are symbols. */);
4741 Vfont_weight_table = BUILD_STYLE_TABLE (weight_table); 4741 Vfont_weight_table = BUILD_STYLE_TABLE (weight_table);
4742 4742
4743 DEFVAR_LISP_NOPRO ("font-slant-table", &Vfont_slant_table, 4743 DEFVAR_LISP_NOPRO ("font-slant-table", &Vfont_slant_table,
4744 doc: /* Vector of font slant symbols vs the corresponding numeric values. 4744 doc: /* Vector of font slant symbols vs the corresponding numeric values.
4745 See `font-weight_table' for the format of the vector. */); 4745 See `font-weight-table' for the format of the vector. */);
4746 Vfont_slant_table = BUILD_STYLE_TABLE (slant_table); 4746 Vfont_slant_table = BUILD_STYLE_TABLE (slant_table);
4747 4747
4748 DEFVAR_LISP_NOPRO ("font-width-table", &Vfont_width_table, 4748 DEFVAR_LISP_NOPRO ("font-width-table", &Vfont_width_table,
4749 doc: /* Alist of font width symbols vs the corresponding numeric values. 4749 doc: /* Alist of font width symbols vs the corresponding numeric values.
4750 See `font-weight_table' for the format of the vector. */); 4750 See `font-weight-table' for the format of the vector. */);
4751 Vfont_width_table = BUILD_STYLE_TABLE (width_table); 4751 Vfont_width_table = BUILD_STYLE_TABLE (width_table);
4752 4752
4753 staticpro (&font_style_table); 4753 staticpro (&font_style_table);
4754 font_style_table = Fmake_vector (make_number (3), Qnil); 4754 font_style_table = Fmake_vector (make_number (3), Qnil);
4755 ASET (font_style_table, 0, Vfont_weight_table); 4755 ASET (font_style_table, 0, Vfont_weight_table);