Lines Matching +defs:xlfd +defs:weight

378 os2Weight(int weight)
380 if (weight < 150)
382 else if (weight < 250)
384 else if (weight < 350)
386 else if (weight < 450)
388 else if (weight < 550)
390 else if (weight < 650)
392 else if (weight < 750)
394 else if (weight < 850)
450 t1Weight(const char *weight)
452 if (!weight)
454 if (strcasecmp(weight, "Thin") == 0)
456 if (strcasecmp(weight, "ExtraLight") == 0) /* FontForge uses this for 200 */
458 if (strcasecmp(weight, "Light") == 0)
460 if (strcasecmp(weight, "Regular") == 0)
462 if (strcasecmp(weight, "Normal") == 0)
464 if (strcasecmp(weight, "Plain") == 0)
466 if (strcasecmp(weight, "Medium") == 0)
468 if (strcasecmp(weight, "Book") == 0)
470 if (strcasecmp(weight, "Roman") == 0) /* Some URW++ fonts do that! */
472 if (strcasecmp(weight, "Demi") == 0)
474 if (strcasecmp(weight, "DemiBold") == 0)
476 if (strcasecmp(weight, "SemiBold") == 0) /* some TeX fonts apparently do that */
478 else if (strcasecmp(weight, "Bold") == 0)
480 else if (strcasecmp(weight, "ExtraBold") == 0) /* freefonts uses this */
482 else if (strcasecmp(weight, "Heavy") == 0) /* FontForge uses this for 800 */
484 else if (strcasecmp(weight, "Black") == 0)
487 fprintf(stderr, "Unknown Type 1 weight \"%s\"\n", weight);
536 ListPtr xlfd = NULL;
537 const char *foundry, *family, *weight, *slant, *sWidth, *adstyle,
548 weight = NULL;
579 if (!weight)
580 weight = os2Weight(os2->usWeightClass);
618 if (!weight)
619 weight = t1Weight(t1info->weight);
638 if (!weight)
639 weight = head->Mac_Style & 1 ? "bold" : "medium";
647 if (!weight) {
648 fprintf(stderr, "Couldn't determine weight for %s\n", filename);
649 weight = "medium";
686 if (!weight)
687 weight = "medium";
704 xlfd = listConsF(xlfd,
707 weight, slant, sWidth, adstyle, spacing);
715 xlfd = listConsF(xlfd,
718 weight, slant, sWidth, adstyle,
727 return xlfd;
817 ListPtr xlfd, lp;
886 xlfd = NULL;
974 fprintf(stderr, "Couldn't allocate xlfd name\n");
979 xlfd = listCons(s, xlfd);
1007 if (xlfd == NULL)
1008 xlfd = makeXLFD(entry->d_name, face, isBitmap);
1012 for (lp = xlfd; lp; lp = lp->next) {
1038 deepDestroyList(xlfd);
1039 xlfd = NULL;