You are not logged in.

#1 2022-04-04 22:46:42

madman_xxx
Member
From: PL
Registered: 2013-07-31
Posts: 35

[SOLVED] Terminus bitmap font invisible in GTK, works fine in Qt

Hello Community,

I know that recent library changes (Pango? Harfbuzz?) caused a series of issues: Terminus was renamed to xos4 Terminus, then bitmap font rendering was dropped for fonts other than in OTB format, but currently I think I have another issue...
I use Terminator, where Terminus is my font of choice. Recently after upgrade this font is selectable, but does not render at all:
https://timobai.pl/img/missing_terminus.png

As you can see it can be selected, but is invisible. Same thing happens in actual terminal. QTerminal works fine.

And now the weird part - font is rendering when I disable anti-aliasingenable hinting (see below).

[madman_xxx@mxdesktop ~]$ pacman -Qs 'freetype|fontconf|harf|terminus|pango'                                                                                                                                                                                                                                               
local/cogl 1.22.8-2                                                                                                                                                                                                                                                                                                          
    An object oriented GL/GLES Abstraction/Utility Layer                                                                                                                                                                                                                                                                     
local/fontconfig 2:2.14.0-1                                                                                                                                                                                                                                                                                                  
    Library for configuring and customizing font access                                                                                                                                                                                                                                                                      
local/freetype2 2.12.0-1                                                                                                                                                                                                                                                                                                     
    Font rasterization library                                                                                                                                                                                                                                                                                               
local/harfbuzz 4.2.0-1                                                                                                                                                                                                                                                                                                       
    OpenType text shaping engine                                                                                                                                                                                                                                                                                             
local/harfbuzz-icu 4.2.0-1                                                                                                                                                                                                                                                                                                   
    OpenType text shaping engine - ICU integration                                                                                                                                                                                                                                                                           
local/libxft 2.3.4-1                                                                                                                                                                                                                                                                                                         
    FreeType-based font drawing library for X                                                                                                                                                                                                                                                                                
local/pango 1:1.50.6-1                                                                                                                                                                                                                                                                                                       
    A library for layout and rendering of text                                                                                                                                                                                                                                                                               
local/pangomm 2.46.2-1                                                                                                                                                                                                                                                                                                       
    C++ bindings for Pango                                                                                                                                                                                                                                                                                                   
local/terminus-font 4.49.1-2                                                                                                                                                                                                                                                                                                 
    Monospace bitmap font (for X11 and console)

Any information on how to fix it would be appreciated. Thanks.

Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by madman_xxx (2022-04-05 21:55:55)

Offline

#2 2022-04-05 08:07:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,265

Re: [SOLVED] Terminus bitmap font invisible in GTK, works fine in Qt

Possible mitigation?

<match target="font">
    <test name="family" qual="any">
        <string>Terminus</string>
    </test>
    <edit name="antialias" mode="assign">
      <bool>false</bool>
    </edit>
</match>

gtk font choosers show me two versions of terminus - one is blind and I assume that's the pcf's …
What if you move away /usr/share/fonts/misc/ter-*pcf.gz and update the font cache?

Offline

#3 2022-04-05 21:52:33

madman_xxx
Member
From: PL
Registered: 2013-07-31
Posts: 35

Re: [SOLVED] Terminus bitmap font invisible in GTK, works fine in Qt

The proposed workaround (to disable anti-aliasing for this font family) worked. Touching .pcf files made no difference, because in terminator (GTK) I can only select .otb fonts anyway.

I found a similar post here and that led me to some experimenting. What I found out: bitmap font invisibility depends on hinting, not on anti-aliasing. If hinting is set to [none], glyphs are invisible. Any other option - [slight], [full] - works

Because there are two workarounds presented here I'm marking this post as solved, however these are not the solutions for the underlying problem. Not even sure which component might be the culprit... Any ideas?

Last edited by madman_xxx (2022-04-06 08:02:33)

Offline

#4 2022-04-06 06:59:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,265

Offline

Board footer

Powered by FluxBB