Lines Matching refs:font

36 #include "font.h"
62 FramebufferFont* font;
134 if (sConsole.font->glyphWidth > 8) {
135 uint16* data = (uint16*)sConsole.font->data;
136 return data[sConsole.font->glyphHeight * glyph + y];
138 return sConsole.font->data[sConsole.font->glyphHeight * glyph + y];
151 + sConsole.bytes_per_row * row * sConsole.font->glyphHeight
152 + column * sConsole.font->glyphWidth * sConsole.bytes_per_pixel);
157 for (int y = 0; y < sConsole.font->glyphHeight; y++) {
159 for (int x = 0; x < sConsole.font->glyphWidth; x++) {
180 + sConsole.bytes_per_row * row * sConsole.font->glyphHeight
181 + column * sConsole.font->glyphWidth / 8);
182 uint8 baseOffset = (column * sConsole.font->glyphWidth) & 0x7;
185 for (int y = 0; y < sConsole.font->glyphHeight; y++) {
190 for (int x = 0; x < sConsole.font->glyphWidth; x++) {
218 x *= sConsole.font->glyphWidth * sConsole.bytes_per_pixel;
219 y *= sConsole.font->glyphHeight;
220 int32 endX = x + sConsole.font->glyphWidth * sConsole.bytes_per_pixel;
221 int32 endY = y + sConsole.font->glyphHeight;
306 height *= sConsole.font->glyphHeight;
307 srcy *= sConsole.font->glyphHeight;
308 desty *= sConsole.font->glyphHeight;
311 width *= sConsole.font->glyphWidth * sConsole.bytes_per_pixel;
312 srcx *= sConsole.font->glyphWidth * sConsole.bytes_per_pixel;
313 destx *= sConsole.font->glyphWidth * sConsole.bytes_per_pixel;
316 width = width * sConsole.font->glyphWidth / 8;
317 srcx = srcx * sConsole.font->glyphWidth / 8;
318 destx = destx * sConsole.font->glyphWidth / 8;
425 sConsole.font = &smallFont;
427 sConsole.font = &bigFont;
436 sConsole.columns = sConsole.width / sConsole.font->glyphWidth;
437 sConsole.rows = sConsole.height / sConsole.font->glyphHeight;