Bug#1069791: console-setup: Build larger console fonts for HiDPI/accessibility with future 6.9 kernels
Control: forcemerge -1 816111
Hello,
T. Joseph Carter, le mer. 24 avril 2024 13:25:22 -0700, a ecrit:
> Linux kernel 6.9+ will support larger font sizes for HiDPI screens. This
> is probably aimed at "more than 4k" monitors, but for accessibility
> reasons it would be really useful to have larger sizes available sooner
> for those of us already have 4k sorts of screens.
Yes, that was the points in adding the support in the kernel :)
> Perhaps this might best be done by putting those huge-sized fonts in an
> appropriately named -huge fonts package? I'll leave the implementation
> details to you, this is just a request for the fonts to be created.
We already had the request in #816111, also #595696 was about possibly
generalizing to using rasterized fonts.
I gave a try at converting terminus.ttf to bdf with otf2bdf:
otf2bdf -c C -p 32 -r 72 /usr/share/fonts/truetype/terminus/TerminusTTF-4.46.0.ttf > /tmp/terminus.bdf
bdf2psf --fb /tmp/terminus.bdf /usr/share/bdf2psf/standard.equivalents ascii.set 256 /tmp/terminus.psf /tmp/terminus.sfm
but the baseline is not coherent. Using DejaVuSansMono seems to be
working better:
otf2bdf -c C -p 32 -r 100 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf > /tmp/DejaVuSansMono.bdf
bdf2psf --fb --width 32 /tmp/DejaVuSansMono.bdf /usr/share/bdf2psf/standard.equivalents ascii.set 256 /tmp/DejaVuSansMono.psf /tmp/DejaVuSansMono.sfm
(I'm adding a new --width parameter to bdf2psf to specify the expected
width since AVERAGE_WIDTH as set by otf2bdf doesn't really tell)
Samuel
Reply to: