Home | History | Annotate | Download | only in minui

Lines Matching full:font

229     GRFont *font = gr_font;
232 if (!font->texture) return x;
234 bold = bold && (font->texture->height != font->cheight);
239 gl->bindTexture(gl, font->texture);
248 gl->texCoord2i(gl, (off * font->cwidth) - x,
249 (bold ? font->cheight : 0) - y);
250 gl->recti(gl, x, y, x + font->cwidth, y + font->cheight);
252 x += font->cwidth;
329 int res = res_create_surface("font", (void**)&(gr_font->texture));
331 // The font image should be a 96x2 array of character images. The
337 printf("failed to read font: res=%d\n", res);
339 // fall back to the compiled-in font.
341 gr_font->texture->width = font.width;
342 gr_font->texture->height = font.height;
343 gr_font->texture->stride = font.width;
345 unsigned char* bits = malloc(font.width * font.height);
349 unsigned char* in = font.rundata;
355 gr_font->cwidth = font.cwidth;
356 gr_font->cheight = font.cheight;