aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
authorKenichi Handa2010-07-26 13:29:08 +0900
committerKenichi Handa2010-07-26 13:29:08 +0900
commit50efd41b43c9b1b540c49c53d4e7824468ec7879 (patch)
tree4a3be8d0322c537816f47a0c6450fc13495edf35 /src/font.c
parentdfe3c90fa5974e200483297e11bb889d0589b8f5 (diff)
parent7d383292d10b876efec43e77fd51c2665e912688 (diff)
downloademacs-50efd41b43c9b1b540c49c53d4e7824468ec7879.tar.gz
emacs-50efd41b43c9b1b540c49c53d4e7824468ec7879.zip
merge trunk
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/font.c b/src/font.c
index ed4da9c75ac..c35716c7c67 100644
--- a/src/font.c
+++ b/src/font.c
@@ -980,39 +980,6 @@ font_expand_wildcards (Lisp_Object *field, int n)
980} 980}
981 981
982 982
983#ifdef ENABLE_CHECKING
984/* Match a 14-field XLFD pattern against a full XLFD font name. */
985static int
986font_match_xlfd (char *pattern, char *name)
987{
988 while (*pattern && *name)
989 {
990 if (*pattern == *name)
991 pattern++;
992 else if (*pattern == '*')
993 if (*name == pattern[1])
994 pattern += 2;
995 else
996 ;
997 else
998 return 0;
999 name++;
1000 }
1001 return 1;
1002}
1003
1004/* Make sure the font object matches the XLFD font name. */
1005static int
1006font_check_xlfd_parse (Lisp_Object font, char *name)
1007{
1008 char name_check[256];
1009 font_unparse_xlfd (font, 0, name_check, 255);
1010 return font_match_xlfd (name_check, name);
1011}
1012
1013#endif
1014
1015
1016/* Parse NAME (null terminated) as XLFD and store information in FONT 983/* Parse NAME (null terminated) as XLFD and store information in FONT
1017 (font-spec or font-entity). Size property of FONT is set as 984 (font-spec or font-entity). Size property of FONT is set as
1018 follows: 985 follows: