diff options
author | Kenichi Handa <handa@m17n.org> | 2008-05-20 06:33:26 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2008-05-20 06:33:26 +0000 |
commit | cd5218d2ab7e468d276dc6bddb7df2d17aa37823 (patch) | |
tree | 8edc9fa4bb05fe6e0e5bc4fc9f2a321b4cb30008 /src/fontset.c | |
parent | 819e81df0224fa777a721ecb2bf27412f0bdb2cb (diff) | |
download | emacs-cd5218d2ab7e468d276dc6bddb7df2d17aa37823.tar.gz |
(Vfont_encoding_alist, find_font_encoding): Moved to
font.c.
(syms_of_fontset): Declaration of font-encoding-alist moved to
font.c.
Diffstat (limited to 'src/fontset.c')
-rw-r--r-- | src/fontset.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/fontset.c b/src/fontset.c index 82e5b4e65de..db62e534921 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -191,7 +191,6 @@ static int next_fontset_id; font for each character. */ static Lisp_Object Vdefault_fontset; -Lisp_Object Vfont_encoding_alist; Lisp_Object Vfont_encoding_charset_alist; Lisp_Object Vuse_default_ascent; Lisp_Object Vignore_relative_composition; @@ -967,31 +966,6 @@ make_fontset_for_ascii_face (f, base_fontset_id, face) } -/* Return ENCODING or a cons of ENCODING and REPERTORY of the font - FONTNAME. ENCODING is a charset symbol that specifies the encoding - of the font. REPERTORY is a charset symbol or nil. */ - -Lisp_Object -find_font_encoding (fontname) - Lisp_Object fontname; -{ - Lisp_Object tail, elt; - - for (tail = Vfont_encoding_alist; CONSP (tail); tail = XCDR (tail)) - { - elt = XCAR (tail); - if (CONSP (elt) - && STRINGP (XCAR (elt)) - && fast_string_match_ignore_case (XCAR (elt), fontname) >= 0 - && (SYMBOLP (XCDR (elt)) - ? CHARSETP (XCDR (elt)) - : CONSP (XCDR (elt)) && CHARSETP (XCAR (XCDR (elt))))) - return (XCDR (elt)); - } - /* We don't know the encoding of this font. Let's assume `ascii'. */ - return Qascii; -} - /* Cache data used by fontset_pattern_regexp. The car part is a pattern string containing at least one wild card, the cdr part is @@ -2099,28 +2073,6 @@ syms_of_fontset () auto_fontset_alist = Qnil; staticpro (&auto_fontset_alist); - DEFVAR_LISP ("font-encoding-alist", &Vfont_encoding_alist, - doc: /* -Alist of fontname patterns vs the corresponding encoding and repertory info. -Each element looks like (REGEXP . (ENCODING . REPERTORY)), -where ENCODING is a charset or a char-table, -and REPERTORY is a charset, a char-table, or nil. - -If ENCDING and REPERTORY are the same, the element can have the form -\(REGEXP . ENCODING). - -ENCODING is for converting a character to a glyph code of the font. -If ENCODING is a charset, encoding a character by the charset gives -the corresponding glyph code. If ENCODING is a char-table, looking up -the table by a character gives the corresponding glyph code. - -REPERTORY specifies a repertory of characters supported by the font. -If REPERTORY is a charset, all characters beloging to the charset are -supported. If REPERTORY is a char-table, all characters who have a -non-nil value in the table are supported. It REPERTORY is nil, Emacs -gets the repertory information by an opened font and ENCODING. */); - Vfont_encoding_alist = Qnil; - DEFVAR_LISP ("font-encoding-charset-alist", &Vfont_encoding_charset_alist, doc: /* Alist of charsets vs the charsets to determine the preferred font encoding. |