Lines Matching refs:buf

566     char *buf;
575 buf = ckmalloc(strlen(font) + strlen(sizes) + 2,
577 sprintf(buf, "%s,%s", font, sizes);
578 AddUPRResource("FontBDFSizes", font, buf, NULL, true);
579 free(buf);
632 static int ReadItem(file, buf, size)
634 char *buf;
663 buf[count++] = c;
666 buf[count] = '\0';
749 char buf[256];
753 /* Copy the fullname into buf, enforcing one space between words.
759 dst = buf;
804 if (dst > buf && *(dst-1) == ' ') dst--;
808 if (strcmp(name, "FetteFraktur-Dfr") == 0) strcat(buf, " Black Dfr");
809 else if (strcmp(name, "Linotext-Dfr") == 0) strcat(buf, " Dfr");
812 src = buf + 2;
817 strcpy(fullnameReturn, buf);
832 /* Copy the family into buf, enforcing one space between words */
834 dst = buf;
856 if (dst > buf && *(dst-1) == ' ') dst--;
866 if (diff == 0 && strncmp(buf, missingFoundries[i],
868 while (dst >= buf) {
872 strncpy(buf, missingFoundries[i], missingFoundryLen[i]);
880 strcat(buf, " Rounded");
883 strcpy(familyReturn, buf);
914 void StripComments(buf)
915 char *buf;
917 register char *ch = buf;
922 if (ch == buf || *(ch-1) != '\\') {
931 if (ch == buf) return;
934 while (ch > buf && (*ch == ' ' || *ch == '\t' || *ch == '\n')) {
939 if (ch == buf && (*ch == ' ' || *ch == '\t' || *ch == '\n')) *ch = '\0';
1114 char key[256], buf[513];
1133 if (!ReadItem(file, buf, 256)) break;
1136 strcpy(fontFullName, buf);
1141 strcpy(fontFamily, buf);
1146 strcpy(fontWeight, buf);
1151 strcpy(fontName, buf);
1156 strcpy(blendDesignPositions, buf);
1161 strcpy(blendDesignMap, buf);
1166 strcpy(blendAxisTypes, buf);
1185 sprintf(buf, "%s,%s", faceReturn, fontName);
1187 AddResource("FontFamily", familyReturn, buf, true);
1349 char buf[256], name[256];
1374 if (fgets(buf, 256, stdin) == NULL) {
1386 if (fgets(buf, 256, file) != NULL) fputs(buf, stdout);
1398 if (fgets(buf, 256, stdin) == NULL) {
1402 if (buf[0] == '\0') continue;
1410 StripName(buf);
1412 AddResource(buf, name, filename, false);
1431 if (fgets(buf, 256, stdin) == NULL) {
1436 sprintf(buf, "%d", size);
1437 AddResource("FontBDFSizes", name, buf, false);
1438 sprintf(buf, "%s%d", name, size);
1439 AddResource("FontBDF", buf, filename, true);
1469 sprintf(buf, "%s,%s", face, name);
1470 AddResource("FontFamily", family, buf, false);
1773 char *buf, *ch = upr->file;
1782 buf = ckmalloc(strlen(upr->name) + strlen(ch) + 1,
1784 strcpy(buf, upr->name);
1785 strcat(buf, ch);
1787 if (FindResource("FontBDF", buf)) {
1790 free(buf);
2041 char buf[256];
2051 while (scanf("%255s", buf) == 1) {
2056 directories[directoryCount-1] = ckmalloc(strlen(buf)+1,
2058 strcpy(directories[directoryCount-1], buf);