Lines Matching refs:font
165 GRFont *font = gr_font; in gr_text() local
169 if (!font || !font->texture || (gr_current & alpha_mask) == 0) return; in gr_text()
171 if (font->texture->pixel_bytes != 1) { in gr_text()
176 bold = bold && (font->texture->height != font->char_height); in gr_text()
183 if (outside(x, y) || outside(x + font->char_width - 1, y + font->char_height - 1)) break; in gr_text()
191 uint8_t* src_p = font->texture->data + ((ch - ' ') * font->char_width) + in gr_text()
192 (bold ? font->char_height * font->texture->row_bytes : 0); in gr_text()
195 text_blend(src_p, font->texture->row_bytes, dst_p, row_pixels, font->char_width, in gr_text()
196 font->char_height); in gr_text()
197 x += font->char_width; in gr_text()
361 gr_font->texture->width = font.width; in gr_init_font()
362 gr_font->texture->height = font.height; in gr_init_font()
363 gr_font->texture->row_bytes = font.width; in gr_init_font()
366 unsigned char* bits = malloc(font.width * font.height); in gr_init_font()
370 unsigned char* in = font.rundata; in gr_init_font()
376 gr_font->char_width = font.char_width; in gr_init_font()
377 gr_font->char_height = font.char_height; in gr_init_font()