• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/cups-408/cups/cups/

Lines Matching +defs:font +defs:size

105   char			**font;		/* Current font */
186 for (i = ppd->num_fonts, font = ppd->fonts; i > 0; i --, font ++)
187 _cupsStrFree(*font);
395 ppd_size_t *size; /* Current page size */
891 * Add this font to the list of available fonts...
1085 * Add a "Custom" page size entry...
1693 * choiceN are all the same size (size defined by PPD spec...)
1732 * choiceN are all the same size (size defined by PPD spec...)
1826 if ((size = ppdPageSize(ppd, name)) == NULL)
1827 size = ppd_add_size(ppd, name);
1829 if (size == NULL)
1832 * Unable to add or find size!
1840 size->width = (float)_cupsStrScand(string, &sptr, loc);
1841 size->length = (float)_cupsStrScand(sptr, NULL, loc);
1848 if ((size = ppdPageSize(ppd, name)) == NULL)
1849 size = ppd_add_size(ppd, name);
1851 if (size == NULL)
1854 * Unable to add or find size!
1862 size->left = (float)_cupsStrScand(string, &sptr, loc);
1863 size->bottom = (float)_cupsStrScand(sptr, &sptr, loc);
1864 size->right = (float)_cupsStrScand(sptr, &sptr, loc);
1865 size->top = (float)_cupsStrScand(sptr, NULL, loc);
1880 * Add a page size...
2013 * Common exit point for errors to save code size...
2309 * 'ppd_add_size()' - Add a page size.
2312 static ppd_size_t * /* O - Named size */
2314 const char *name) /* I - Name of size */
2316 ppd_size_t *size; /* Size */
2320 size = malloc(sizeof(ppd_size_t));
2322 size = realloc(ppd->sizes, sizeof(ppd_size_t) * (size_t)(ppd->num_sizes + 1));
2324 if (size == NULL)
2327 ppd->sizes = size;
2328 size += ppd->num_sizes;
2331 memset(size, 0, sizeof(ppd_size_t));
2332 strlcpy(size->name, name, sizeof(size->name));
2334 return (size);