1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-14 04:45:57 +01:00

fixed some bugs

This commit is contained in:
kojima
2004-10-26 03:03:02 +00:00
parent 087a16400f
commit bbd1e5dada
6 changed files with 11 additions and 11 deletions

View File

@@ -24,11 +24,11 @@ xlfdToFcPattern(char *xlfd, int size)
FcPattern *pattern;
char *fname, *ptr;
fname = wmalloc(strlen(xlfd) + 20);
if (strstr(xlfd, "%d")!=NULL)
sprintf(fname, xlfd, size ? size : DEFAULT_SIZE);
else
strcpy(fname, xlfd);
if (strchr(xlfd, "%")!=NULL)
return FcNameParse("sans:pixelsize=12");
else {
fname= wstrdup(xlfd);
}
if ((ptr = strchr(fname, ','))) {
*ptr = 0;