/dports/games/toycars/toycars-0.3.10/toycars/src/glf/ |
H A D | glf.c | 129 curfont = -1; in glfInit() 304 if ((curfont<0) || (fonts[curfont] == NULL)) return GLF_ERROR; in glfUnloadFont() 318 curfont = -1; in glfUnloadFont() 329 temp = curfont; in glfUnloadFontD() 343 if ((curfont < 0) || (fonts[curfont] == NULL)) return; in glfDrawWiredSymbol() 372 temp = curfont; in glfDrawWiredSymbolF() 375 curfont = temp; in glfDrawWiredSymbolF() 421 temp = curfont; in glfDrawWiredStringF() 435 if ((curfont<0) || (fonts[curfont] == NULL)) return; in glfDrawSolidSymbol() 502 if ((curfont<0) || (fonts[curfont] == NULL)) return; in glfDraw3DWiredSymbol() [all …]
|
/dports/science/wxmacmolplt/wxmacmolplt-7.7-43-g9a46f7a/src/ |
H A D | glf.cpp | 141 curfont = -1; 341 if ((curfont<0) || (fonts[curfont] == NULL)) return GLF_ERROR; 356 curfont = -1; 367 temp = curfont; 381 if ((curfont < 0) || (fonts[curfont] == NULL)) return; 407 temp = curfont; 410 curfont = temp; 572 temp = curfont; 586 if ((curfont<0) || (fonts[curfont] == NULL)) return; 653 if ((curfont<0) || (fonts[curfont] == NULL)) return; [all …]
|
/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/ |
H A D | rendertext.cpp | 10 font *curfont = NULL; variable 80 curfont = f; in setfont() 299 if(curfont->chars.inrange(c-curfont->skip)) in draw_char() 301 font::charinfo &info = curfont->chars[c-curfont->skip]; in draw_char() 436 else if(curfont->chars.inrange(c-curfont->skip))\ 441 int w = curfont->chars[c-curfont->skip].w;\ 447 if(!curfont->chars.inrange(c-curfont->skip)) break;\ 448 int cw = curfont->chars[c-curfont->skip].w + 1;\ 498 #define TEXTCHAR(idx) x += curfont->chars[c-curfont->skip].w + 1; in text_pos() 520 #define TEXTCHAR(idx) x += curfont->chars[c-curfont->skip].w + 1; in text_bounds() [all …]
|
/dports/games/openjk/OpenJK-07675e2/code/rd-common/ |
H A D | tr_font.cpp | 1470 CFontInfo *curfont; in RE_Font_StrLenPixels() local 1473 if(!curfont) in RE_Font_StrLenPixels() 1509 CFontInfo *curfont; in RE_Font_StrLenPixels() 1512 if(!curfont) in RE_Font_StrLenPixels() 1603 CFontInfo *curfont; in RE_Font_HeightPixels() local 1606 if(curfont) in RE_Font_HeightPixels() 1656 if(!curfont) in RE_Font_DrawString() 1689 …foy += curfont->mbRoundCalcs ? Round((curfont->GetHeight() - (curfont->GetDescender() >> 1)) * fSc… in RE_Font_DrawString() 1713 …foy += curfont->mbRoundCalcs ? Round(curfont->GetPointSize() * fScale) : curfont->GetPointSize() *… in RE_Font_DrawString() 1861 …foy += curfont->mbRoundCalcs ? Round((curfont->GetHeight() - (curfont->GetDescender() >> 1)) * fSc… in RE_Font_DrawString() [all …]
|
/dports/games/tesseract-data/tesseract/src/engine/ |
H A D | rendertext.cpp | 7 font *curfont = NULL; variable 137 curfont = f; in setfont() 145 fontstack.add(curfont); in pushfont() 151 curfont = fontstack.pop(); in popfont() 207 font::charinfo &info = curfont->chars[c-curfont->charoffset]; in draw_char() 281 float y = 0, x = 0, scale = curfont->scale/float(curfont->defaulth);\ 291 else if(curfont->chars.inrange(c-curfont->charoffset))\ 293 float cw = scale*curfont->chars[c-curfont->charoffset].advance;\ 303 if(!curfont->chars.inrange(c-curfont->charoffset)) break;\ 304 float cw = scale*curfont->chars[c-curfont->charoffset].advance;\ [all …]
|
/dports/games/tesseract/tesseract/src/engine/ |
H A D | rendertext.cpp | 7 font *curfont = NULL; variable 137 curfont = f; in setfont() 145 fontstack.add(curfont); in pushfont() 151 curfont = fontstack.pop(); in popfont() 207 font::charinfo &info = curfont->chars[c-curfont->charoffset]; in draw_char() 281 float y = 0, x = 0, scale = curfont->scale/float(curfont->defaulth);\ 291 else if(curfont->chars.inrange(c-curfont->charoffset))\ 293 float cw = scale*curfont->chars[c-curfont->charoffset].advance;\ 303 if(!curfont->chars.inrange(c-curfont->charoffset)) break;\ 304 float cw = scale*curfont->chars[c-curfont->charoffset].advance;\ [all …]
|
/dports/games/bloodfrontier/bloodfrontier/src/engine/ |
H A D | rendertext.cpp | 8 font *curfont = NULL; variable 55 curfont = f; in setfont() 89 font::charinfo &info = curfont->chars[c-33]; in draw_char() 90 float tc_left = (info.x + curfont->offsetx) / float(curfont->tex->xs); in draw_char() 91 float tc_top = (info.y + curfont->offsety) / float(curfont->tex->ys); in draw_char() 92 float tc_right = (info.x + info.w + curfont->offsetw) / float(curfont->tex->xs); in draw_char() 93 float tc_bottom = (info.y + info.h + curfont->offseth) / float(curfont->tex->ys); in draw_char() 177 else if(curfont->chars.inrange(c-33))\ 182 int w = curfont->chars[c-33].w;\ 337 if(!fontstack.length() && curfont) in pushfont() [all …]
|
/dports/games/sauerbraten/sauerbraten/src/engine/ |
H A D | rendertext.cpp | 7 font *curfont = NULL; variable 105 curfont = f; in setfont() 113 fontstack.add(curfont); in pushfont() 119 curfont = fontstack.pop(); in popfont() 174 font::charinfo &info = curfont->chars[c-curfont->charoffset]; in draw_char() 240 float y = 0, x = 0, scale = curfont->scale/float(curfont->defaulth);\ 250 else if(curfont->chars.inrange(c-curfont->charoffset))\ 252 float cw = scale*curfont->chars[c-curfont->charoffset].advance;\ 263 if(!curfont->chars.inrange(c-curfont->charoffset)) break;\ 264 float cw = scale*curfont->chars[c-curfont->charoffset].advance;\ [all …]
|
/dports/deskutils/treesheets/treesheets-1.0.2/lobster/src/ |
H A D | font.cpp | 25 BitmapFont *curfont = nullptr; variable 42 if (curfont == it->second) curfont = nullptr; in CullFonts() 52 curfont = nullptr; in FontCleanup() 105 curfont = fontelem->second; in AddFont() 108 curfont = new BitmapFont(curface, csize, osize); in AddFont() 109 fontcache.insert({ fontname, curfont }); in AddFont() 132 auto f = curfont; in AddFont() 150 auto f = curfont; in AddFont()
|
/dports/games/openjk/OpenJK-07675e2/codemp/rd-common/ |
H A D | tr_font.cpp | 1360 if ( !curfont ) { in RE_Font_StrLenPixelsNew() 1401 thisLineWidth += curfont->mbRoundCalcs in RE_Font_StrLenPixelsNew() 1459 CFontInfo *curfont; in RE_Font_HeightPixels() local 1461 curfont = GetFont(iFontHandle); in RE_Font_HeightPixels() 1462 if(curfont) in RE_Font_HeightPixels() 1536 if(!curfont || !psText) in RE_Font_DrawString() 1546 …fAsianYAdjust = ((curfont->GetPointSize() * fScale) - (curfont->GetPointSize() * fScaleAsian)) / 2… in RE_Font_DrawString() 1569 …foy += curfont->mbRoundCalcs ? Round((curfont->GetHeight() - (curfont->GetDescender() >> 1)) * fSc… in RE_Font_DrawString() 1582 …foy += curfont->mbRoundCalcs ? Round(curfont->GetPointSize() * fScale) : curfont->GetPointSize() *… in RE_Font_DrawString() 1591 pLetter = curfont->GetLetter(' '); in RE_Font_DrawString() [all …]
|
/dports/games/redeclipse16/base-1.6.0/src/engine/ |
H A D | rendertext.cpp | 32 font *curfont = NULL; variable 145 curfont = f; in setfont() 196 font::charinfo &info = curfont->chars[c-curfont->charoffset]; in draw_char() 462 else if(curfont->chars.inrange(qc-curfont->charoffset)) \ 464 float cw = scale*curfont->chars[qc-curfont->charoffset].advance; \ 503 float y = 0, x = 0, scale = curfont->scale/float(curfont->defaulth)*curtextscale; \ 546 else if(curfont->chars.inrange(c-curfont->charoffset)) \ 548 float cw = scale*curfont->chars[c-curfont->charoffset].advance; \ 711 …float width = 0, scale = curfont->maxh*curfont->scale/float(curfont->defaulth)*curtextscale*textke… in key_widthf() 739 …float width = 0, sh = curfont->maxh*curfont->scale/float(curfont->defaulth)*curtextscale, h = sh*t… in draw_key() [all …]
|
/dports/x11-wm/dwm/dwm-6.2/ |
H A D | drw.c | 257 Fnt *usedfont, *curfont, *nextfont; in drw_text() local 290 for (curfont = drw->fonts; curfont; curfont = curfont->next) { in drw_text() 291 charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint); in drw_text() 293 if (curfont == usedfont) { in drw_text() 297 nextfont = curfont; in drw_text() 365 for (curfont = drw->fonts; curfont->next; curfont = curfont->next) in drw_text() 367 curfont->next = usedfont; in drw_text()
|
/dports/misc/sent/sent-1_1/ |
H A D | drw.c | 244 Fnt *usedfont, *curfont, *nextfont; in drw_text() local 277 for (curfont = drw->fonts; curfont; curfont = curfont->next) { in drw_text() 278 charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint); in drw_text() 280 if (curfont == usedfont) { in drw_text() 284 nextfont = curfont; in drw_text() 351 for (curfont = drw->fonts; curfont->next; curfont = curfont->next) in drw_text() 353 curfont->next = usedfont; in drw_text()
|
/dports/x11/dmenu/freebsd-dmenu-5.0/ |
H A D | drw.c | 258 Fnt *usedfont, *curfont, *nextfont; in drw_text() local 291 for (curfont = drw->fonts; curfont; curfont = curfont->next) { in drw_text() 292 charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint); in drw_text() 294 if (curfont == usedfont) { in drw_text() 298 nextfont = curfont; in drw_text() 366 for (curfont = drw->fonts; curfont->next; curfont = curfont->next) in drw_text() 368 curfont->next = usedfont; in drw_text()
|
/dports/math/xspread/xspread-3.1.1c.orig/ |
H A D | plot_bar.c | 232 curfont = XLoadQueryFont(dpy, SC_FONT); in plot_bar() 234 curfont = XLoadQueryFont(dpy, userfont); in plot_bar() 235 if (curfont == NULL) in plot_bar() 243 curfontid = curfont->fid; in plot_bar() 244 curfontheight = curfont->max_bounds.ascent + curfont->max_bounds.descent; in plot_bar() 245 curfontwidth = curfont->max_bounds.width; in plot_bar() 416 text_w = XTextWidth(curfont,str,len+2); in plot_bar() 439 text_w = XTextWidth(curfont, graphic_title[0], len); in plot_bar() 446 text_w = XTextWidth(curfont, graphic_title[1],len); in plot_bar() 452 text_w=XTextWidth(curfont,graphic_title[2],len); in plot_bar() [all …]
|
H A D | plot_pie.c | 138 extern XFontStruct *curfont; /* Font descriptor struct for current font */ in plot_pie() 195 curfont = XLoadQueryFont(dpy, SC_FONT); in plot_pie() 197 curfont = XLoadQueryFont(dpy, userfont); in plot_pie() 198 if (curfont == NULL) in plot_pie() 206 curfontid = curfont->fid; in plot_pie() 207 curfontheight = curfont->max_bounds.ascent + curfont->max_bounds.descent; in plot_pie() 208 curfontwidth = curfont->max_bounds.width; in plot_pie() 223 xsh.width = XTextWidth(curfont, TITLE, 80 + pad * 2); in plot_pie() 321 text_w= XTextWidth(curfont, graphic_title[0], len); in plot_pie() 327 text_w= XTextWidth(curfont, graphic_title[1], len); in plot_pie() [all …]
|
H A D | plot_stk_bar.c | 244 curfont = XLoadQueryFont(dpy, SC_FONT); in plot_stacked_bar() 246 curfont = XLoadQueryFont(dpy, userfont); in plot_stacked_bar() 247 if (curfont == NULL) in plot_stacked_bar() 255 curfontid = curfont->fid; in plot_stacked_bar() 256 curfontheight = curfont->max_bounds.ascent + curfont->max_bounds.descent; in plot_stacked_bar() 257 curfontwidth = curfont->max_bounds.width; in plot_stacked_bar() 418 text_w = XTextWidth(curfont,str,len+2); in plot_stacked_bar() 441 text_w = XTextWidth(curfont, graphic_title[0], len); in plot_stacked_bar() 448 text_w = XTextWidth(curfont, graphic_title[1],len); in plot_stacked_bar() 454 text_w=XTextWidth(curfont,graphic_title[2],len); in plot_stacked_bar() [all …]
|
H A D | scXstuff.c | 90 XFontStruct *curfont; /* Font descriptor struct for current font */ variable 123 curfont = fontinfo; 159 curfont = XLoadQueryFont(dpy, SC_FONT); 161 curfont = XLoadQueryFont(dpy, userfont); 162 if (curfont == NULL) 169 usefont(curfont);
|
H A D | plot_XY.c | 258 curfont = XLoadQueryFont(dpy, SC_FONT); in plot_XY() 260 curfont = XLoadQueryFont(dpy, userfont); in plot_XY() 261 if (curfont == NULL) in plot_XY() 269 curfontid = curfont->fid; in plot_XY() 270 curfontheight = curfont->max_bounds.ascent + curfont->max_bounds.descent; in plot_XY() 271 curfontwidth = curfont->max_bounds.width; in plot_XY() 432 text_w = XTextWidth(curfont,str,len); in plot_XY() 444 text_w= XTextWidth(curfont, graphic_title[0], len); in plot_XY() 449 text_w= XTextWidth(curfont, graphic_title[1], len); in plot_XY() 456 text_w= XTextWidth(curfont, graphic_title[2], len); in plot_XY() [all …]
|
/dports/games/redeclipse/base-2.0.0/src/engine/ |
H A D | rendertext.cpp | 22 font *curfont = NULL; variable 143 curfont = id; in setfont() 155 fontstack.add(curfont); in pushfont() 228 font::charinfo &info = curfont->chars[c-curfont->charoffset]; in draw_char() 502 else if(curfont->chars.inrange(qc-curfont->charoffset)) \ 504 float cw = scale*curfont->chars[qc-curfont->charoffset].advance; \ 545 float y = 0, x = 0, scale = curfont->scale/float(curfont->defaulth)*curtextscale; \ 579 else if(curfont->chars.inrange(c-curfont->charoffset)) \ 581 float cw = scale*curfont->chars[c-curfont->charoffset].advance; \ 742 …float width = 0, scale = curfont->maxh*curfont->scale/float(curfont->defaulth)*curtextscale*textke… in key_widthf() [all …]
|
/dports/devel/plan9port/plan9port-1f098efb7370a0b28306d10681e21883fb1c1507/src/cmd/mnihongo/ |
H A D | mnihongo.c | 72 int jfont, curfont; in main() local 82 curfont = 1; in main() 105 else if(jfont == curfont){ in main() 120 curfont = atoi(str); in main() 121 if(curfont < 0 || curfont > 20) in main() 122 curfont = 1; /* sanity */ in main()
|
/dports/games/brutalchess/brutalchess-0.5.2/src/ |
H A D | fontloader.cpp | 14 unsigned int FontLoader::curfont = 0; member in FontLoader 22 curfont = (unsigned int)((int)fonts.size() - 1); in loadFont() 24 fonts[ curfont ].name = name; in loadFont() 25 fonts[ curfont ].file = fontfile; in loadFont() 26 fonts[ curfont ].height = pixheight; in loadFont() 28 if( fonts[ curfont ].init( fontfile.c_str(), pixheight ) ) in loadFont() 41 curfont = i; in setFont() 288 font_data & ft_font = fonts[ curfont ]; in print()
|
/dports/x11/gtkchtheme/gtk-chtheme-0.3.1/ |
H A D | font_sel.c | 30 const gchar *curfont; in font_browse_clicked() local 38 curfont = gtk_entry_get_text(GTK_ENTRY(font_entry)); in font_browse_clicked() 40 if (g_utf8_strlen(curfont, -1)) in font_browse_clicked() 41 gtk_font_selection_dialog_set_font_name(font_dlg, curfont); in font_browse_clicked()
|
/dports/graphics/graphviz/graphviz-2.44.1/lib/common/ |
H A D | htmlparse.y | 385 if (curfont) { in pushFont() 386 if (!f.color && curfont->color) in pushFont() 387 f.color = curfont->color; in pushFont() 389 f.size = curfont->size; in pushFont() 390 if (!f.name && curfont->name) in pushFont() 391 f.name = curfont->name; in pushFont() 392 if (curfont->flags) in pushFont() 393 f.flags |= curfont->flags; in pushFont() 406 sfont_t* curfont = HTMLstate.fontstack; in popFont() local 407 sfont_t* prevfont = curfont->pfont; in popFont() [all …]
|
/dports/converters/p5-LaTeXML/LaTeXML-0.8.6/lib/LaTeXML/Core/ |
H A D | Stomach.pm | 352 my $curfont = $STATE->lookupValue('font'); 357 $STATE->assignValue(savedfont => $curfont, 'local'); 360 color => $curfont->getColor, background => $curfont->getBackground, 361 size => $curfont->getSize, 367 color => $curfont->getColor, background => $curfont->getBackground, 368 size => $curfont->getSize), 'local'); }
|