#989834 konsole: Only possible to select the smallest available size for OpenType Bitmap fonts

Package:
konsole
Source:
konsole
Description:
X terminal emulator
Submitter:
Tim Small
Date:
2021-06-16 04:21:02 UTC
Severity:
normal
Tags:
#989834#5
Date:
2021-06-14 13:31:20 UTC
From:
To:
When selecting a bitmap font via Konsole -> Settings -> Configure
Konsole -> Profiles -> Edit -> Appearance -> Font -> Choose, only the
smallest font size is displayed for OpenType bitmap fonts.

e.g. Install the fonts-terminus-otb package, and run the command:

fc-query /usr/share/fonts/opentype/terminus/terminus-normal.otb

The following is amongst the report:

pixelsize: 12(f)(s) 14(f)(s) 16(f)(s) 18(f)(s) 20(f)(s) 22(f)(s) 24(f)(s) 28(f)(s) 32(f)(s)

Terminus is selectable in the list of fonts via the Konsole profile
editor, but only the smallest pixelsize (12) is listed as a selectable
option.

Workaround:

Open the font file with fontforge, import only the desired size (e.g.
32), rename the font in Menu -> Element -> Font Info (e.g. "Terminus" to
"Terminus32", then export as an OpenType bitmap font (File -> Generate
Fonts -> "X11 bitmap only sftnt (otb)" -> Generate.  Import the saved
font via KDE -> System Settings -> Font Management -> Install from File.

Restart Konsole.  The desired size is now selectable via the Konsole
profile editor.

Thanks!

Tim.

p.s. I've tagged this as a11y because I use bitmap fonts AND high dpi
displays to avoid chronic eye strain (without which I am limited to
about 30 minutes max screen time per day).  Whilst I can use vector
fonts (e.g. Hack), and also disable font smoothing in the Konsole
settings, the resulting fonts look quite ugly, and aren't as easy to
read.  So, I think I consider this an a11y issue (albeit quite a niche
one).  See also #989831.

#989834#10
Date:
2021-06-16 04:19:28 UTC
From:
To:
Hi,

I can confirm.
But I am not sure whether this is a konsole problem or a font-config or
or whatever layer it is.

Could you please report this upstream to the kde bug tracker, thanks.

Best

Norbert