Lines Matching refs:font
99 #include <linux/font.h>
1765 * Select primary font, don't display control chars if
1773 * Select first alternate font, lets chars < 32 be
1781 * Select second alternate font, toggle high bit
2777 * useless without them; to display an arbitrary font position use the
2778 * direct-to-font zone in UTF-8 mode.
2823 * mind, but do this for ASCII characters since a font
4601 struct console_font font;
4606 font.data = kmalloc(max_font_size, GFP_KERNEL);
4607 if (!font.data)
4610 font.data = NULL;
4616 rc = vc->vc_sw->con_font_get(vc, &font);
4624 c = (font.width+7)/8 * 32 * font.charcount;
4626 if (op->data && font.charcount > op->charcount)
4628 if (font.width > op->width || font.height > op->height)
4633 op->height = font.height;
4634 op->width = font.width;
4635 op->charcount = font.charcount;
4637 if (op->data && copy_to_user(op->data, font.data, c))
4641 kfree(font.data);
4647 struct console_font font;
4663 font.data = memdup_user(op->data, size);
4664 if (IS_ERR(font.data))
4665 return PTR_ERR(font.data);
4667 font.charcount = op->charcount;
4668 font.width = op->width;
4669 font.height = op->height;
4677 rc = vc->vc_sw->con_font_set(vc, &font, op->flags);
4681 kfree(font.data);
4687 struct console_font font = {.width = op->width, .height = op->height};
4708 rc = vc->vc_sw->con_font_default(vc, &font, s);
4713 op->width = font.width;
4714 op->height = font.height;