Lines Matching refs:weight

226    sprintf(newfs,"%s:slant=%d:weight=%d:size=%f:width=%d",fontname,tsp->italics,tsp->weight,tsp->fs,(tsp->co ? 75 : tsp->condensed));
524 This lets the value of "src - lines" determine the weight to give to each new vadvance value
537 double weight;
558 weight = (1.0 / (double) (src - lines));
559 tpi->chunks[trec].vadvance = tpi->chunks[trec].vadvance*(1.0-weight) + newV*weight;
838 printf(" alts: %6d fi_idx: %6d wgt: %6d\n",j,fsp->alts[j].fi_idx,fsp->alts[j].weight);
879 alt.weight = 1; /* new ones start with this weight, it can only go up */
888 \brief Increment the weight of an alts entry by 1, readjust order if necessary
900 if(fsp->alts[a_idx].weight == UINT32_MAX){
901 for(i=0; i<fsp->used; i++){ fsp->alts[i].weight /= 2; }
903 fsp->alts[a_idx].weight++;
905 if(fsp->alts[i-1].weight >= fsp->alts[a_idx].weight)break;
1877 \returns SVG font weight
1878 \param weight Fontconfig font weight.
1880 int TR_weight_FC_to_SVG(int weight){
1882 if( weight == 0){ ret = 100; }
1883 else if(weight == 40){ ret = 200; }
1884 else if(weight == 50){ ret = 300; }
1885 else if(weight == 80){ ret = 400; }
1886 else if(weight == 100){ ret = 500; }
1887 else if(weight == 180){ ret = 600; }
1888 else if(weight == 200){ ret = 700; }
1889 else if(weight == 205){ ret = 800; }
1890 else if(weight == 210){ ret = 900; }
2007 sprintf(obuf,"font-weight:%d;",TR_weight_FC_to_SVG(tsp->weight));
2143 sprintf(obuf,"font-weight:%d;",TR_weight_FC_to_SVG(tsp->weight));
2231 sprintf(obuf,"font-weight:%d;",TR_weight_FC_to_SVG(tsp->weight));
2778 tsp.weight = 80;
2878 if(1 != sscanf(data,"%d",&tsp.weight) || tsp.weight < 0 || tsp.weight > 215)boom("Invalid WGT:",lineno);