Rev 14535 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14535 | Rev 17177 | ||
---|---|---|---|
Line 106... | Line 106... | ||
106 | if(stat(buf1,&st)!=0) return NULL; |
106 | if(stat(buf1,&st)!=0) return NULL; |
107 | snprintf(buf2,sizeof(buf2),",%s,",fontname); |
107 | snprintf(buf2,sizeof(buf2),",%s,",fontname); |
108 | if(strstr(middle_fonts,buf2)!=NULL) |
108 | if(strstr(middle_fonts,buf2)!=NULL) |
109 | snprintf(buf2,sizeof(buf2), |
109 | snprintf(buf2,sizeof(buf2), |
110 | "%s<img src=\"%s%s\" style=\"vertical-align: middle; border:none\" \ |
110 | "%s<img src=\"%s%s\" style=\"vertical-align: middle; border:none\" \ |
111 | alt=\"%s\" |
111 | alt=\"%s\">%s", |
112 | mathalign_sup1,ref_base,buf1,fontname,mathalign_sup2); |
112 | mathalign_sup1,ref_base,buf1,fontname,mathalign_sup2); |
113 | else |
113 | else |
114 | snprintf(buf2,sizeof(buf2),"<img src=\"%s%s\" style=\"margin:0px; border:none\" \ |
114 | snprintf(buf2,sizeof(buf2),"<img src=\"%s%s\" style=\"margin:0px; border:none\" \ |
115 | alt=\"%s\" |
115 | alt=\"%s\">", |
116 | ref_base,buf1,fontname); |
116 | ref_base,buf1,fontname); |
117 | } |
117 | } |
118 | force_setvar("wims_mathfont_",buf2); return getvar("wims_mathfont_"); |
118 | force_setvar("wims_mathfont_",buf2); return getvar("wims_mathfont_"); |
119 | } |
119 | } |