Lines Matching defs:font
13 * User definable mapping table and font loading by Eugene G. Crosser,
16 * Improved loadable font/UTF-8 support by H. Peter Anvin
91 static unsigned int vga_default_font_height __read_mostly; /* Height of default screen font */
855 * The font loading code goes back to the codepage package by
891 return -EINVAL; /* Return to default font not supported */
897 * The default font is kept in slot 0 and is never touched.
898 * A custom font is loaded in slot 2 (256 ch) or 2:3 (512 ch)
904 ch512 = false; /* Default font is always 256 */
1003 /* force hi font mask to 0, so we always clear
1015 * Adjust the screen to fit a font of a certain height
1025 /* Reprogram the CRTC for the new font size
1031 The same applies for the spill bits in the font size and cursor
1074 static int vgacon_font_set(struct vc_data *c, struct console_font *font,
1077 unsigned charcount = font->charcount;
1083 if (font->width != VGA_FONTWIDTH ||
1087 rc = vgacon_do_font_op(&vgastate, font->data, 1, charcount == 512);
1092 rc = vgacon_adjust_height(c, font->height);
1096 static int vgacon_font_get(struct vc_data *c, struct console_font *font)
1101 font->width = VGA_FONTWIDTH;
1102 font->height = c->vc_font.height;
1103 font->charcount = vga_512_chars ? 512 : 256;
1104 if (!font->data)
1106 return vgacon_do_font_op(&vgastate, font->data, 0, vga_512_chars);