[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1708011391.git.legion@kernel.org>
Date: Thu, 15 Feb 2024 15:37:19 +0000
From: Alexey Gladkov <legion@...nel.org>
To: LKML <linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>
Subject: [RFC PATCH v1 0/5] VT: Add ability to get font requirements
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
Powered by blists - more mailing lists