Rev 6208 | Rev 7673 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6208 | Rev 6214 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | if(stat(buf1,&st)!=0) return NULL; |
110 | if(stat(buf1,&st)!=0) return NULL; |
111 | snprintf(buf2,sizeof(buf2),",%s,",fontname); |
111 | snprintf(buf2,sizeof(buf2),",%s,",fontname); |
112 | if(strstr(middle_fonts,buf2)!=NULL) |
112 | if(strstr(middle_fonts,buf2)!=NULL) |
113 | snprintf(buf2,sizeof(buf2), |
113 | snprintf(buf2,sizeof(buf2), |
114 | "%s<img src=\"%s%s\" style=\"vertical-align: middle; border:none\" \ |
114 | "%s<img src=\"%s%s\" style=\"vertical-align: middle; border:none\" \ |
115 | alt=\"%s\"/>%s", |
115 | alt=\"%s\" />%s", |
116 | mathalign_sup1,ref_base,buf1,fontname,mathalign_sup2); |
116 | mathalign_sup1,ref_base,buf1,fontname,mathalign_sup2); |
117 | else |
117 | else |
118 | snprintf(buf2,sizeof(buf2),"<img src=\"%s%s\" style=\"margin:0px; border:none\" \ |
118 | snprintf(buf2,sizeof(buf2),"<img src=\"%s%s\" style=\"margin:0px; border:none\" \ |
119 | alt=\"%s\"/>", |
119 | alt=\"%s\" />", |
120 | ref_base,buf1,fontname); |
120 | ref_base,buf1,fontname); |
121 | } |
121 | } |
122 | force_setvar("wims_mathfont_",buf2); return getvar("wims_mathfont_"); |
122 | force_setvar("wims_mathfont_",buf2); return getvar("wims_mathfont_"); |
123 | } |
123 | } |
124 | 124 |