Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't select bitmap fonts in GTK+ apps
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 113
Location: Seattle, US

PostPosted: Thu May 13, 2021 5:37 am    Post subject: Can't select bitmap fonts in GTK+ apps Reply with quote

Mostly care about Terminus in xfce4-terminal that I'm so used to.
I think it stopped working once I unmerged now deprecated infinality but I may be mistaken. I haven't updated freetype/pango lately either.

Code:
> eselect fontconfig --list
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-hinting-full.conf *
  [3]   10-hinting-medium.conf
  [4]   10-hinting-none.conf
  [5]   10-hinting-slight.conf
  [6]   10-no-sub-pixel.conf
  [7]   10-scale-bitmap-fonts.conf *
  [8]   10-sub-pixel-bgr.conf
  [9]   10-sub-pixel-rgb.conf *
  [10]  10-sub-pixel-vbgr.conf
  [11]  10-sub-pixel-vrgb.conf
  [12]  10-unhinted.conf
  [13]  11-lcdfilter-default.conf *
  [14]  11-lcdfilter-legacy.conf
  [15]  11-lcdfilter-light.conf
  [16]  20-unhint-small-dejavu-sans.conf
  [17]  20-unhint-small-dejavu-sans-mono.conf
  [18]  20-unhint-small-dejavu-serif.conf
  [19]  20-unhint-small-vera.conf
  [20]  25-unhint-nonlatin.conf
  [21]  30-metric-aliases.conf
  [22]  40-nonlatin.conf *
  [23]  45-generic.conf *
  [24]  45-latin.conf *
  [25]  49-sansserif.conf *
  [26]  50-user.conf
  [27]  51-local.conf
  [28]  57-dejavu-sans.conf *
  [29]  57-dejavu-sans-mono.conf *
  [30]  57-dejavu-serif.conf *
  [31]  60-generic.conf *
  [32]  60-latin.conf *
  [33]  60-liberation.conf *
  [34]  62-croscore-arimo.conf
  [35]  62-croscore-cousine.conf
  [36]  62-croscore-symbolneu.conf
  [37]  62-croscore-tinos.conf
  [38]  65-fonts-persian.conf
  [39]  65-khmer.conf
  [40]  65-nonlatin.conf *
  [41]  69-unifont.conf *
  [42]  70-no-bitmaps.conf
  [43]  70-yes-bitmaps.conf *
  [44]  75-yes-terminus.conf *
  [45]  80-delicious.conf *
  [46]  90-synthetic.conf


Code:

> fc-list | grep Terminus
/usr/share/fonts/terminus/ter-x24b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x12b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x32b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x22b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x18b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x28b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x20b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x18n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x28n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x20n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x12n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x32n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x22n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x14n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x24n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x16b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/terminus/ter-x16n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/terminus/ter-x14b.pcf.gz: xos4 Terminus:style=Bold
[I] > fc-match "Terminus"
DejaVuSans.ttf: "DejaVu Sans" "Book"
[I] > fc-match "xos4 Terminus"
ter-x12n.pcf.gz: "xos4 Terminus" "Regular"


Code:

[I] media-libs/freetype (2.10.4(2)@05/12/2021): High-quality and portable font engine
[I] x11-libs/pango (1.48.4@05/07/2021): Internationalized text layout and rendering library
Back to top
View user's profile Send private message
psycho
Guru
Guru


Joined: 22 Jun 2007
Posts: 534
Location: New Zealand

PostPosted: Thu May 13, 2021 8:35 am    Post subject: Reply with quote

Have you tried the Terminus TrueType font?. I use it in my xfce4-terminal and am not aware of the difference between it and the original, though admittedly it's a long time since I've seen the original (which used to be my preference too). I use terminus-font on the consoles and then the TrueType version in my x11 terminals and (once you fiddle with the sizes a bit) it looks quite consistent.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Thu May 13, 2021 8:56 am    Post subject: Reply with quote

pango removed support for bitmap fonts since >=pango-1.44, it was masked until recently but it was making using newer gimp, gtk4, etc.. impossible so that went away.

There's been talk of making a news item about this (currently it's only in ~arch, stable has pango-1.42.4), but unsure on status.

Edit: I've also seen talk of possibly adding a USE for ebuilds to convert bitmap fonts (page even uses terminus as example), but don't hold your breath :) You can always convert yourself if need be.
Back to top
View user's profile Send private message
dbtx
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2020
Posts: 117

PostPosted: Fri May 14, 2021 7:22 pm    Post subject: Reply with quote

Ionen wrote:
pango removed support for bitmap fonts since >=pango-1.44


oh good. Thank you for lighting this up. I had a vague hint of a hunch, but it seemed so improbable that I guessed my real problem was any other less-important change, which I wasn't following even though XFCE upstream would have been on top of it. Apparently Arch users found this out ten months ago.

https://gitlab.gnome.org/GNOME/pango/-/issues/386
https://blogs.gnome.org/mclasen/2019/05/25/pango-future-directions/

And here I am, casually looking around for the best way to throw all traces of almost all emoji codepoints into a black hole. Silly luddite!

OP: I got xos4 Terminus bitmaps back in xfce4-terminal last week by masking >=x11-libs/pango-1.43.0 and downgrading it. I didn't realize it broke everywhere else.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Fri May 14, 2021 8:43 pm    Post subject: Reply with quote

dbtx wrote:
OP: I got xos4 Terminus bitmaps back in xfce4-terminal last week by masking >=x11-libs/pango-1.43.0 and downgrading it. I didn't realize it broke everywhere else.
Do be aware that, as previously mentioned, some packages need >=pango-1.44, some even need >=1.48 -- and there's no indication pango will re-add support as this is not a bug but rather an upstream intended feature removal.

Number of packages needing it will slowly increase, likely replacing things you use over time. It's fine to delay for some time but just saying masking new pango is not going to work forever. Gentoo itself tried to keep it masked for a while, but that was the end of the line to be able to upgrade other things.
Back to top
View user's profile Send private message
dbtx
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2020
Posts: 117

PostPosted: Fri May 14, 2021 11:37 pm    Post subject: Reply with quote

Of course. How quickly I forget. I'll probably test-drive OTF conversion at least but slowly break my VTE habits. I wonder if the missing font support can be added to Harfbuzz or if it's considered out-of-scope or what.
Back to top
View user's profile Send private message
dbtx
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2020
Posts: 117

PostPosted: Mon Aug 02, 2021 2:31 pm    Post subject: Reply with quote

I ended up dropping to pango-1.42.4-r2 again because things were wrong. The top half is classic a.k.a. correct:

(normal) https://i.ibb.co/b16Nggc/pango-kerning-regression.png

(zoomed) https://i.ibb.co/d6qNx9q/pango-kerning-regression-large.png

And if my problem is in fact this problem, it looks like things are not going to change very soon.

https://github.com/harfbuzz/harfbuzz/issues/2394

edit: I realized too late that this is wandering off-topic, so I'll start another one before I continue remarking upon the absurdity


Last edited by dbtx on Mon Aug 02, 2021 3:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Mon Aug 02, 2021 2:50 pm    Post subject: Reply with quote

Even the top half looks washed-out and terrible! :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum