Lines Matching refs:font
99 #include <linux/font.h>
1718 * Select primary font, don't display control chars if
1726 * Select first alternate font, lets chars < 32 be
1734 * Select second alternate font, toggle high bit
2730 * useless without them; to display an arbitrary font position use the
2731 * direct-to-font zone in UTF-8 mode.
2776 * mind, but do this for ASCII characters since a font
4534 struct console_font font;
4543 font.data = kvmalloc(max_font_size, GFP_KERNEL);
4544 if (!font.data)
4547 font.data = NULL;
4553 rc = vc->vc_sw->con_font_get(vc, &font, vpitch);
4561 c = (font.width+7)/8 * vpitch * font.charcount;
4563 if (op->data && font.charcount > op->charcount)
4565 if (font.width > op->width || font.height > op->height)
4570 op->height = font.height;
4571 op->width = font.width;
4572 op->charcount = font.charcount;
4574 if (op->data && copy_to_user(op->data, font.data, c))
4578 kvfree(font.data);
4584 struct console_font font;
4604 font.data = memdup_user(op->data, size);
4605 if (IS_ERR(font.data))
4606 return PTR_ERR(font.data);
4608 font.charcount = op->charcount;
4609 font.width = op->width;
4610 font.height = op->height;
4618 rc = vc->vc_sw->con_font_set(vc, &font, vpitch, op->flags);
4622 kfree(font.data);
4628 struct console_font font = {.width = op->width, .height = op->height};
4649 rc = vc->vc_sw->con_font_default(vc, &font, s);
4654 op->width = font.width;
4655 op->height = font.height;