Messages in this thread | | | From | Alexey Gladkov <> | Subject | [RFC PATCH v1 0/5] VT: Add ability to get font requirements | Date | Thu, 15 Feb 2024 15:37:19 +0000 |
| |
We now have KD_FONT_OP_SET_TALL, but in fact such large fonts cannot be loaded. No console driver supports tall fonts. Unfortunately, userspace cannot distinguish the lack of support in the driver from errors in the font itself. In all cases, EINVAL will be returned.
How about adding another operator to get the supported font size so that userspace can handle this situation correctly?
I mean something like this proof-of-concept.
---
Alexey Gladkov (5): VT: Add KD_FONT_OP_GET_INFO operation newport_con: Allow to get max font width and height sticon: Allow to get max font width and height vgacon: Allow to get max font width and height fbcon: Allow to get max font width and height
drivers/tty/vt/vt.c | 27 +++++++++++++++++++++++++++ drivers/tty/vt/vt_ioctl.c | 2 +- drivers/video/console/newport_con.c | 21 +++++++++++++++++---- drivers/video/console/sticon.c | 21 +++++++++++++++++++-- drivers/video/console/vgacon.c | 17 ++++++++++++++++- drivers/video/fbdev/core/fbcon.c | 18 +++++++++++++++++- include/linux/console.h | 1 + include/uapi/linux/kd.h | 1 + 8 files changed, 99 insertions(+), 9 deletions(-)
-- 2.43.0
| |