Lines Matching defs:nchars
256 int i, ndx, nchars, nignored;
283 if ((!line) || (sscanf((char *) line, "CHARS %d", &nchars) != 1)) {
287 if (nchars < 1) {
291 if (nchars > (signed) (INT32_MAX / sizeof(CharInfoRec))) {
292 bdfError("Couldn't allocate pCI (%d*%d)\n", nchars,
296 ci = calloc(nchars, sizeof(CharInfoRec));
298 bdfError("Couldn't allocate pCI (%d*%d)\n", nchars,
305 bitmapExtra->glyphNames = malloc(nchars * sizeof(Atom));
308 nchars, (int) sizeof(Atom));
313 bitmapExtra->sWidths = malloc(nchars * sizeof(int));
316 nchars, (int) sizeof(int));
326 for (ndx = 0; (ndx < nchars) && (line) && (bdfIsPrefix(line, "STARTCHAR"));) {
492 if (ndx + nignored != nchars) {
493 bdfError("%d too few characters\n", nchars - (ndx + nignored));
496 nchars = ndx;
497 bitmapFont->num_chars = nchars;