View previous topic :: View next topic |
Author |
Message |
theli Tux's lil' helper
Joined: 25 Nov 2004 Posts: 113 Location: Seattle, US
|
Posted: Thu May 13, 2021 5:37 am Post subject: Can't select bitmap fonts in GTK+ apps |
|
|
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 |
|
|
psycho Guru
Joined: 22 Jun 2007 Posts: 534 Location: New Zealand
|
Posted: Thu May 13, 2021 8:35 am Post subject: |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2727
|
Posted: Thu May 13, 2021 8:56 am Post subject: |
|
|
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 |
|
|
dbtx Tux's lil' helper
Joined: 20 Jan 2020 Posts: 117
|
Posted: Fri May 14, 2021 7:22 pm Post subject: |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2727
|
Posted: Fri May 14, 2021 8:43 pm Post subject: |
|
|
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 |
|
|
dbtx Tux's lil' helper
Joined: 20 Jan 2020 Posts: 117
|
Posted: Fri May 14, 2021 11:37 pm Post subject: |
|
|
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 |
|
|
dbtx Tux's lil' helper
Joined: 20 Jan 2020 Posts: 117
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Aug 02, 2021 2:50 pm Post subject: |
|
|
Even the top half looks washed-out and terrible! |
|
Back to top |
|
|
|