Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0d1f7c08
Commit
0d1f7c08
authored
Jun 20, 2000
by
Kenichi Handa
Browse files
(font_list): Handle the case that REGISTRY doesn't contain information
about ENCODING.
parent
11d9bd93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
src/xfaces.c
src/xfaces.c
+13
-6
No files found.
src/xfaces.c
View file @
0d1f7c08
...
...
@@ -2470,12 +2470,19 @@ font_list (f, pattern, family, registry, fonts)
registry_str = (NILP (registry) ? "*" : (char *) XSTRING (registry)->data);
pattern_str = (char *) alloca (strlen (family_str)
+ strlen (registry_str)
+ 10);
if (index (family_str, '-'))
sprintf (pattern_str, "-%s-*-%s", family_str, registry_str);
else
sprintf (pattern_str, "-*-%s-*-%s", family_str, registry_str);
+ strlen (registry_str)
+ 10);
strcpy (pattern_str, index (family_str, '-') ? "-" : "-*-");
strcat (pattern_str, family_str);
strcat (pattern_str, "-*-");
strcat (pattern_str, registry_str);
if (!index (registry_str, '-'))
{
if (registry_str[strlen (registry_str) - 1] == '*')
strcat (pattern_str, "-*");
else
strcat (pattern_str, "*-*");
}
}
else
pattern_str = (char *) XSTRING (pattern)->data;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment