Lines Matching refs:font
108 GRFont* font = gr_font; in gr_text() local
110 if (!font->texture || gr_current_a == 0) return; in gr_text()
112 bold = bold && (font->texture->height != font->cheight); in gr_text()
119 if (outside(x, y) || outside(x+font->cwidth-1, y+font->cheight-1)) break; in gr_text()
125 unsigned char* src_p = font->texture->data + ((ch - ' ') * font->cwidth) + in gr_text()
126 (bold ? font->cheight * font->texture->row_bytes : 0); in gr_text()
129 text_blend(src_p, font->texture->row_bytes, in gr_text()
131 font->cwidth, font->cheight); in gr_text()
133 x += font->cwidth; in gr_text()
286 gr_font->texture->width = font.width; in gr_init_font()
287 gr_font->texture->height = font.height; in gr_init_font()
288 gr_font->texture->row_bytes = font.width; in gr_init_font()
291 unsigned char* bits = reinterpret_cast<unsigned char*>(malloc(font.width * font.height)); in gr_init_font()
295 unsigned char* in = font.rundata; in gr_init_font()
301 gr_font->cwidth = font.cwidth; in gr_init_font()
302 gr_font->cheight = font.cheight; in gr_init_font()