aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2008-05-20 16:00:55 +0000
committerJuanma Barranquero2008-05-20 16:00:55 +0000
commit027a33c045d32eb47a22224e1921c2c477077b24 (patch)
tree533c8bc2bde3494d819cded8a5975f340ab5b649 /src
parentbe91065ff44cd5f77de8e87c42b281f297c8ac2c (diff)
downloademacs-027a33c045d32eb47a22224e1921c2c477077b24.tar.gz
emacs-027a33c045d32eb47a22224e1921c2c477077b24.zip
(syms-of-font) <font-encoding-alist>:
(Ffontp, Ffont_make_gstring): Fix typos in docstrings. (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font, Ffont_otf_alternates): Doc fixes.
Diffstat (limited to 'src')
-rw-r--r--src/font.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/font.c b/src/font.c
index d6c0305ffb1..69d19068bc6 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1347,7 +1347,7 @@ font_parse_fcname (name, font)
1347 : p0[1] == 'm' ? FONT_SPACING_MONO 1347 : p0[1] == 'm' ? FONT_SPACING_MONO
1348 : FONT_SPACING_PROPORTIONAL); 1348 : FONT_SPACING_PROPORTIONAL);
1349 ASET (font, FONT_SPACING_INDEX, make_number (spacing)); 1349 ASET (font, FONT_SPACING_INDEX, make_number (spacing));
1350 } 1350 }
1351 else 1351 else
1352 { 1352 {
1353 /* unknown key */ 1353 /* unknown key */
@@ -1943,12 +1943,12 @@ font_score (entity, spec_prop, alternate_families)
1943 int j; 1943 int j;
1944 1944
1945 for (j = 1; CONSP (alternate_families); 1945 for (j = 1; CONSP (alternate_families);
1946 j++, alternate_families = XCDR (alternate_families)) 1946 j++, alternate_families = XCDR (alternate_families))
1947 { 1947 {
1948 spec_str = XCAR (alternate_families); 1948 spec_str = XCAR (alternate_families);
1949 if (strcasecmp (SDATA (spec_str), SDATA (entity_str)) == 0) 1949 if (strcasecmp (SDATA (spec_str), SDATA (entity_str)) == 0)
1950 break; 1950 break;
1951 1951
1952 } 1952 }
1953 if (j > 3) 1953 if (j > 3)
1954 j = 3; 1954 j = 3;
@@ -2369,7 +2369,7 @@ font_list_entities (frame, spec)
2369 alternate_familes = Qnil; 2369 alternate_familes = Qnil;
2370 else 2370 else
2371 { 2371 {
2372 alternate_familes = Fassoc_string (family, 2372 alternate_familes = Fassoc_string (family,
2373 Vface_alternative_font_family_alist, 2373 Vface_alternative_font_family_alist,
2374 Qt); 2374 Qt);
2375 if (! NILP (alternate_familes)) 2375 if (! NILP (alternate_familes))
@@ -3262,7 +3262,7 @@ font_at (c, pos, face, w, string)
3262 displayed by the same font. FACE is the face selected for the 3262 displayed by the same font. FACE is the face selected for the
3263 character as POS on frame F. STRING, if not nil, is the string to 3263 character as POS on frame F. STRING, if not nil, is the string to
3264 check instead of the current buffer. 3264 check instead of the current buffer.
3265 3265
3266 The return value is the position of the character that is displayed 3266 The return value is the position of the character that is displayed
3267 by the differnt font than that of the character as POS. */ 3267 by the differnt font than that of the character as POS. */
3268 3268
@@ -3326,7 +3326,7 @@ DEFUN ("fontp", Ffontp, Sfontp, 1, 2, 0,
3326 doc: /* Return t if OBJECT is a font-spec, font-entity, or font-object. 3326 doc: /* Return t if OBJECT is a font-spec, font-entity, or font-object.
3327Return nil otherwise. 3327Return nil otherwise.
3328Optional 2nd argument EXTRA-TYPE, if non-nil, specifies to check 3328Optional 2nd argument EXTRA-TYPE, if non-nil, specifies to check
3329which kind of font it is. It must be one of `font-spec', `font-entity' 3329which kind of font it is. It must be one of `font-spec', `font-entity',
3330`font-object'. */) 3330`font-object'. */)
3331 (object, extra_type) 3331 (object, extra_type)
3332 Lisp_Object object, extra_type; 3332 Lisp_Object object, extra_type;
@@ -3513,7 +3513,7 @@ Optional 2nd argument FRAME specifies the target frame.
3513Optional 3rd argument NUM, if non-nil, limits the number of returned fonts. 3513Optional 3rd argument NUM, if non-nil, limits the number of returned fonts.
3514Optional 4th argument PREFER, if non-nil, is a font-spec to 3514Optional 4th argument PREFER, if non-nil, is a font-spec to
3515control the order of the returned list. Fonts are sorted by 3515control the order of the returned list. Fonts are sorted by
3516how they are close to PREFER. */) 3516how close they are to PREFER. */)
3517 (font_spec, frame, num, prefer) 3517 (font_spec, frame, num, prefer)
3518 Lisp_Object font_spec, frame, num, prefer; 3518 Lisp_Object font_spec, frame, num, prefer;
3519{ 3519{
@@ -3559,7 +3559,7 @@ how they are close to PREFER. */)
3559 3559
3560DEFUN ("font-family-list", Ffont_family_list, Sfont_family_list, 0, 1, 0, 3560DEFUN ("font-family-list", Ffont_family_list, Sfont_family_list, 0, 1, 0,
3561 doc: /* List available font families on the current frame. 3561 doc: /* List available font families on the current frame.
3562Optional argument FRAME specifies the target frame. */) 3562Optional argument FRAME, if non-nil, specifies the target frame. */)
3563 (frame) 3563 (frame)
3564 Lisp_Object frame; 3564 Lisp_Object frame;
3565{ 3565{
@@ -3718,7 +3718,7 @@ This function is called after those tables are initialized. */)
3718 return Qnil; 3718 return Qnil;
3719} 3719}
3720 3720
3721/* The following three functions are still expremental. */ 3721/* The following three functions are still experimental. */
3722 3722
3723DEFUN ("font-make-gstring", Ffont_make_gstring, Sfont_make_gstring, 2, 2, 0, 3723DEFUN ("font-make-gstring", Ffont_make_gstring, Sfont_make_gstring, 2, 2, 0,
3724 doc: /* Return a newly created g-string for FONT-OBJECT with NUM glyphs. 3724 doc: /* Return a newly created g-string for FONT-OBJECT with NUM glyphs.
@@ -3731,7 +3731,7 @@ HEADER is a vector of this form:
3731 [FONT-OBJECT WIDTH LBEARING RBEARING ASCENT DESCENT] 3731 [FONT-OBJECT WIDTH LBEARING RBEARING ASCENT DESCENT]
3732where 3732where
3733 FONT-OBJECT is a font-object for all glyphs in the g-string, 3733 FONT-OBJECT is a font-object for all glyphs in the g-string,
3734 WIDTH thry DESCENT are the metrics (in pixels) of the whole G-string. 3734 WIDTH thru DESCENT are the metrics (in pixels) of the whole G-string.
3735GLYPH is a vector of this form: 3735GLYPH is a vector of this form:
3736 [ FROM-IDX TO-IDX C CODE WIDTH LBEARING RBEARING ASCENT DESCENT 3736 [ FROM-IDX TO-IDX C CODE WIDTH LBEARING RBEARING ASCENT DESCENT
3737 [ [X-OFF Y-OFF WADJUST] | nil] ] 3737 [ [X-OFF Y-OFF WADJUST] | nil] ]
@@ -3739,7 +3739,7 @@ where
3739 FROM-IDX and TO-IDX are used internally and should not be touched. 3739 FROM-IDX and TO-IDX are used internally and should not be touched.
3740 C is the character of the glyph. 3740 C is the character of the glyph.
3741 CODE is the glyph-code of C in FONT-OBJECT. 3741 CODE is the glyph-code of C in FONT-OBJECT.
3742 WIDTH thry DESCENT are the metrics (in pixels) of the glyph. 3742 WIDTH thru DESCENT are the metrics (in pixels) of the glyph.
3743 X-OFF and Y-OFF are offests to the base position for the glyph. 3743 X-OFF and Y-OFF are offests to the base position for the glyph.
3744 WADJUST is the adjustment to the normal width of the glyph. */) 3744 WADJUST is the adjustment to the normal width of the glyph. */)
3745 (font_object, num) 3745 (font_object, num)
@@ -3768,7 +3768,7 @@ DEFUN ("font-fill-gstring", Ffont_fill_gstring, Sfont_fill_gstring, 4, 5, 0,
3768START and END specify the region to extract characters. 3768START and END specify the region to extract characters.
3769If optional 5rd argument OBJECT is non-nil, it is a buffer or a string from 3769If optional 5rd argument OBJECT is non-nil, it is a buffer or a string from
3770where to extract characters. 3770where to extract characters.
3771FONT-OBJECT may be nil if GSTRING already already contains one. */) 3771FONT-OBJECT may be nil if GSTRING already contains one. */)
3772 (gstring, font_object, start, end, object) 3772 (gstring, font_object, start, end, object)
3773 Lisp_Object gstring, font_object, start, end, object; 3773 Lisp_Object gstring, font_object, start, end, object;
3774{ 3774{
@@ -4063,7 +4063,7 @@ DEFUN ("font-otf-alternates", Ffont_otf_alternates, Sfont_otf_alternates,
4063OTF-FEATURES specifies which features of the font FONT-OBJECT to apply 4063OTF-FEATURES specifies which features of the font FONT-OBJECT to apply
4064in this format: 4064in this format:
4065 (SCRIPT LANGSYS FEATURE ...) 4065 (SCRIPT LANGSYS FEATURE ...)
4066See the documentation of `font-otf-gsub' for more detail. 4066See the documentation of `font-drive-otf' for more detail.
4067 4067
4068The value is a list of cons cells of the format (GLYPH-ID . CHARACTER), 4068The value is a list of cons cells of the format (GLYPH-ID . CHARACTER),
4069where GLYPH-ID is a glyph index of the font, and CHARACTER is a 4069where GLYPH-ID is a glyph index of the font, and CHARACTER is a
@@ -4165,14 +4165,14 @@ doesn't provide a file name).
4165 4165
4166PIXEL-SIZE is a pixel size by which the font is opened. 4166PIXEL-SIZE is a pixel size by which the font is opened.
4167 4167
4168SIZE is a maximum advance width of the font in pixel. 4168SIZE is a maximum advance width of the font in pixels.
4169 4169
4170ASCENT, DESCENT, SPACE-WIDTH, AVERAGE-WIDTH are metrics of the font in 4170ASCENT, DESCENT, SPACE-WIDTH, AVERAGE-WIDTH are metrics of the font in
4171pixel. 4171pixels.
4172 4172
4173CAPABILITY is a list whose first element is a symbol representing the 4173CAPABILITY is a list whose first element is a symbol representing the
4174font format \(x, opentype, truetype, type1, pcf, or bdf) and the 4174font format \(x, opentype, truetype, type1, pcf, or bdf) and the
4175remaining elements describes a detail of the font capability. 4175remaining elements describe the details of the font capability.
4176 4176
4177If the font is OpenType font, the form of the list is 4177If the font is OpenType font, the form of the list is
4178 \(opentype GSUB GPOS) 4178 \(opentype GSUB GPOS)
@@ -4453,7 +4453,7 @@ Each element looks like (REGEXP . (ENCODING . REPERTORY)),
4453where ENCODING is a charset or a char-table, 4453where ENCODING is a charset or a char-table,
4454and REPERTORY is a charset, a char-table, or nil. 4454and REPERTORY is a charset, a char-table, or nil.
4455 4455
4456If ENCDING and REPERTORY are the same, the element can have the form 4456If ENCODING and REPERTORY are the same, the element can have the form
4457\(REGEXP . ENCODING). 4457\(REGEXP . ENCODING).
4458 4458
4459ENCODING is for converting a character to a glyph code of the font. 4459ENCODING is for converting a character to a glyph code of the font.
@@ -4464,7 +4464,7 @@ the table by a character gives the corresponding glyph code.
4464REPERTORY specifies a repertory of characters supported by the font. 4464REPERTORY specifies a repertory of characters supported by the font.
4465If REPERTORY is a charset, all characters beloging to the charset are 4465If REPERTORY is a charset, all characters beloging to the charset are
4466supported. If REPERTORY is a char-table, all characters who have a 4466supported. If REPERTORY is a char-table, all characters who have a
4467non-nil value in the table are supported. It REPERTORY is nil, Emacs 4467non-nil value in the table are supported. If REPERTORY is nil, Emacs
4468gets the repertory information by an opened font and ENCODING. */); 4468gets the repertory information by an opened font and ENCODING. */);
4469 Vfont_encoding_alist = Qnil; 4469 Vfont_encoding_alist = Qnil;
4470 4470