Lines Matching defs:directory
55 static int ReadFontAlias ( char *directory, Bool isFile,
63 FontFileReadDirectory (const char *directory, FontDirectoryPtr *pdir)
83 if (strlen(directory) + 1 + sizeof(FontDirFile) > sizeof(dir_file))
86 /* Check for font directory attributes */
88 if ((ptr = strchr(directory, ':'))) {
91 if ((ptr = strchr(directory+2, ':'))) {
93 strncpy(dir_path, directory, ptr - directory);
94 dir_path[ptr - directory] = '\0';
96 strlcpy(dir_path, directory, sizeof(dir_path));
125 dir = FontFileMakeDir(directory, num_fonts);
181 if (strlen(dir->directory) + sizeof(FontDirFile) > sizeof(dir_file))
184 strlcpy (dir_file, dir->directory, sizeof(dir_file));
195 if ((strlen(dir->directory) + sizeof(FontAliasFile)) > sizeof(dir_file))
197 strlcpy (dir_file, dir->directory, sizeof(dir_file));
274 ReadFontAlias(char *directory, Bool isFile, FontDirectoryPtr *pdir)
287 if (strlen(directory) >= sizeof(alias_file))
290 strlcpy(alias_file, directory, sizeof(alias_file));
292 if (strlen(directory) + 1 + sizeof(FontAliasFile) > sizeof(alias_file))
294 if (directory[strlen(directory) - 1] != '/')
311 *pdir = dir = FontFileMakeDir(directory, 10);