lkml.org 
[lkml]   [2024]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH v1 0/5] VT: Add ability to get font requirements
Date
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


\
 
 \ /
  Last update: 2024-05-27 15:05    [W:1.856 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site