Bug#1069791: console-setup: Build larger console fonts for HiDPI/accessibility with future 6.9 kernels

2024-04-28 Thread Samuel Thibault
Joseph Carter, le dim. 28 avril 2024 16:21:06 -0700, a ecrit:
> Even so, could you try to include a DejaVuSansMonoBold font as well?

It's also included in my change.

Samuel



Bug#1069791: console-setup: Build larger console fonts for HiDPI/accessibility with future 6.9 kernels

2024-04-28 Thread Joseph Carter
My apologies for missing the existing bug scrolling through the list. There 
were a lot of them to sift through. I may see if some of them have been 
incidentally fixed as far as I can tell.

I understand the eventual goal for the kernel folks is to rid themselves of 
CONFIG_VT all together, so I realize this is a stopgap. Even so, could you try 
to include a DejaVuSansMonoBold font as well? I'd appreciate it if it's 
possible as I can personally read a smaller heavyweight font and it'd really 
help debugging servers with my portable display.

Obviously the long-term solution is some userspace alternative that does the 
same thing probably using cage and some restricted tabbed terminal maybe? Hmm. 
I dunno if that's even on anybody's radar any sooner than forky.

Joseph

On Fri, Apr 26, 2024, at 10:11, Samuel Thibault wrote:
> 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



Processed: Re: Bug#1069791: console-setup: Build larger console fonts for HiDPI/accessibility with future 6.9 kernels

2024-04-26 Thread Debian Bug Tracking System
Processing control commands:

> forcemerge -1 816111
Bug #1069791 [console-setup] console-setup: Build larger console fonts for 
HiDPI/accessibility with future 6.9 kernels
Bug #816111 [console-setup] Larger font variants for HiDPI displays
Bug #816111 [console-setup] Larger font variants for HiDPI displays
Merged 816111 1069791

-- 
1069791: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069791
816111: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816111
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Processed: Re: Bug#1069791: console-setup: Build larger console fonts for HiDPI/accessibility with future 6.9 kernels

2024-04-26 Thread Debian Bug Tracking System
Processing control commands:

> forcemerge -1 816111
Bug #1069791 [console-setup] console-setup: Build larger console fonts for 
HiDPI/accessibility with future 6.9 kernels
Bug #1069791 [console-setup] console-setup: Build larger console fonts for 
HiDPI/accessibility with future 6.9 kernels
Marked as found in versions console-setup/1.137.
Bug #816111 [console-setup] Larger font variants for HiDPI displays
Severity set to 'wishlist' from 'normal'
864320 was blocked by: 595696 816111
864320 was not blocking any bugs.
Removed blocking bug(s) of 864320: 816111
Marked as found in versions console-setup/1.226.
Merged 816111 1069791

-- 
1069791: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069791
816111: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816111
864320: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864320
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1069791: console-setup: Build larger console fonts for HiDPI/accessibility with future 6.9 kernels

2024-04-26 Thread Samuel Thibault
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



Bug#1069791: console-setup: Build larger console fonts for HiDPI/accessibility with future 6.9 kernels

2024-04-24 Thread T. Joseph Carter
Package: console-setup
Version: 1.226
Severity: wishlist

Dear Maintainer,

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.

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.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.9-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages console-setup depends on:
ii  console-setup-linux 1.226
ii  debconf [debconf-2.0]   1.5.86
ii  keyboard-configuration  1.226
ii  xkb-data2.41-2

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii  locales2.37-18
ii  sysvinit-utils [lsb-base]  3.09-1

Versions of packages keyboard-configuration depends on:
ii  debconf [debconf-2.0]   1.5.86
ii  liblocale-gettext-perl  1.07-7
ii  xkb-data2.41-2

Versions of packages console-setup-linux depends on:
ii  init-system-helpers 1.66
ii  kbd 2.6.4-2
ii  keyboard-configuration  1.226

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
pn  console-common
pn  console-data  
pn  console-tools 
pn  gnome-control-center  
ii  kbd   2.6.4-2
ii  systemd   255.4-1+b1

-- debconf information:
  keyboard-configuration/unsupported_config_options: true
  keyboard-configuration/ctrl_alt_bksp: false
  keyboard-configuration/unsupported_options: true
  console-setup/guess_font:
  keyboard-configuration/unsupported_layout: true
  console-setup/fontsize: 16x32
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic 
languages
  keyboard-configuration/optionscode:
  console-setup/framebuffer_only:
  keyboard-configuration/layout:
  console-setup/fontsize-text47: 16x32 (framebuffer only)
* console-setup/charmap47: UTF-8
  keyboard-configuration/other:
  keyboard-configuration/model: Generic 105-key PC
  keyboard-configuration/switch: No temporary switch
* console-setup/fontsize-fb47: 16x32 (framebuffer only)
  keyboard-configuration/store_defaults_in_debconf_db: true
  keyboard-configuration/toggle: No toggling
  console-setup/store_defaults_in_debconf_db: true
  debian-installer/console-setup-udeb/title:
  keyboard-configuration/variantcode:
* keyboard-configuration/variant: English (US)
  console-setup/use_system_font:
  keyboard-configuration/layoutcode: us
  keyboard-configuration/unsupported_config_layout: true
  keyboard-configuration/compose: No compose key
  console-setup/codesetcode: Lat15
* console-setup/fontface47: TerminusBold
  keyboard-configuration/altgr: The default for the keyboard layout
  keyboard-configuration/xkb-keymap: us
  keyboard-configuration/modelcode: pc105