Lines Matching defs:fontname
216 \brief Constrouct a fontspec from a TCHUNK_SPECS and a fontname
219 \param fontname Fontname to use in the new fontspec
222 char *TR_construct_fontspec(const TCHUNK_SPECS *tsp, const char *fontname){
223 int newlen = 128 + strlen(fontname); /* too big, but not by much */
226 sprintf(newfs,"%s:slant=%d:weight=%d:size=%f:width=%d",fontname,tsp->italics,tsp->weight,tsp->fs,(tsp->co ? 75 : tsp->condensed));
235 \param fontname Fontname to substitute into the new fontspec
238 char *TR_reconstruct_fontspec(const char *fontspec, const char *fontname){
240 int newlen = strlen(fontspec) + strlen(fontname) + 1; /* too big, but not by much */
244 if(colon){ sprintf(newfs,"%s%s",fontname,&fontspec[colon]); }
262 char *fontname;
296 (FcPatternGetString( fsp->fontset->fonts[i], FC_FULLNAME, 0, (FcChar8 **)&fontname) != FcResultMatch)
302 newfontspec = TR_reconstruct_fontspec((char *) fsp->fontspec, fontname);
728 \param fontname UTF-8 font name