You are not logged in.
Pages: 1
Hello. I'm trying to get xft:gohufont to work. Here is screen shot of the bitmap version -- http://0x0.st/-8kO.png. Here is what I get with 'urxvt -fn "xft:GohuFont"' -- http://0x0.st/-8kf.png. The few other xft fonts I tested with looked fine. I'm using 'extra/freetype2 2.10.4-1 [installed]'. Any ideas?
-- edit --
# fc-match -a | grep gohufont
gohufont-11.ttf: "GohuFont" "Medium"
gohufont-14.ttf: "GohuFont" "14"
gohufont-uni-11.ttf: "GohuFont" "Medium"
gohufont-uni-14.ttf: "GohuFont" "uni-14"
Last edited by steve___ (2021-02-24 22:44:06)
Offline
Looks like the font ships a 11pt and a 14pt variant, you need to use one of those sizes in urxvt, otherwise the size will be interpolated by the vector implementation.
Why don't you use https://aur.archlinux.org/packages/gohufont-otb/ (which should™ work w/ recent pango versions despite being a bitmap font)?
Online
I've tried size:11 / size:14 / pixelsize:11 / pixelsize:14 and they all look similar to the screen shot I posted.
I did install the gohufont-otb package but it didn't show up in the output of 'fc-list'.
Offline
fc-list | grep -i gohu
/usr/share/fonts/gohufont-otb/gohufont-bold.otb: Gohu GohuFont:style=Bold
/usr/share/fonts/gohufont-otb/gohufont.otb: Gohu GohuFont:style=Regular
Is this a wayland session? Is only urxvt affected?
Online
It's X, started by running 'startx' and the issue is system wide.
# pacman -Qi gohufont-otb
Name : gohufont-otb
Version : 2.1-8
Description : OpenType bitmap conversion of Gohufont
Architecture : any
URL : https://font.gohu.org
Licenses : custom:WTFPL
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : gohu-ttf
Replaces : None
Installed Size : 80.27 KiB
Packager : Unknown Packager
Build Date : Fri 19 Feb 2021 05:33:49 PM
Install Date : Wed 24 Feb 2021 10:35:07 AM
Install Reason : Explicitly installed
Install Script : No
Validated By : None
# fc-cache -rs
# fc-cache -vf
# fc-list | grep -i gohu
/root/.fonts/gohufont-14.ttf: GohuFont:style=14
/root/.fonts/gohufont-11.ttf: GohuFont:style=Medium
/root/.fonts/gohufont-uni-11.ttf: GohuFont:style=Medium
/root/.fonts/gohufont-uni-14.ttf: GohuFont:style=uni-14
Last edited by steve___ (2021-02-24 15:43:41)
Offline
Why do you have the ttf font installed locally for the root user and why do you operate as root itfp?
Online
It wasn't working as my regular user so I tested as root; sorry about that. I had downloaded those files manually to test with.
$ find /usr/share/fonts/ -iname '*gohu*'
/usr/share/fonts/gohufont-otb
/usr/share/fonts/gohufont-otb/gohufont-bold.otb
/usr/share/fonts/gohufont-otb/gohufont.otb
/usr/share/fonts/local/gohufont-14b.pcf.gz
/usr/share/fonts/local/gohufont-uni-14.pcf.gz
/usr/share/fonts/local/gohufont-uni-14b.pcf.gz
/usr/share/fonts/local/gohufont-11b.pcf.gz
/usr/share/fonts/local/gohufont-14.pcf.gz
/usr/share/fonts/local/gohufont-uni-11b.pcf.gz
/usr/share/fonts/local/gohufont-uni-11.pcf.gz
/usr/share/fonts/local/gohufont-11.pcf.gz
/usr/share/fonts/misc/gohufont-14b.pcf.gz
/usr/share/fonts/misc/gohufont-uni-14.pcf.gz
/usr/share/fonts/misc/gohufont-uni-14b.pcf.gz
/usr/share/fonts/misc/gohufont-bold.otb
/usr/share/fonts/misc/gohufont-11b.pcf.gz
/usr/share/fonts/misc/gohufont-14.pcf.gz
/usr/share/fonts/misc/gohufont-uni-11b.pcf.gz
/usr/share/fonts/misc/gohufont.otb
/usr/share/fonts/misc/gohufont-uni-11.pcf.gz
/usr/share/fonts/misc/gohufont-11.pcf.gz
Offline
pacman -Qo /usr/share/fonts/gohufont-otb/gohufont.otb /usr/share/fonts/misc/gohufont.otb /usr/share/fonts/local/gohufont-uni-14.pcf.gz
I'm not sure how you manage to not find any of those fonts …
sudo fc-cache -rsv
Online
Yes I started to think those weren't xft fonts and then went down
different rabbit holes. Before aborting that attempt, I manually copied
some of the gohufonts from .../local/ to .../mics/ (and vice versa),
wondering if there was a bug or other reason why the gohu fonts were
being seen in the .../local dir.
$ pacman -Qo /usr/share/fonts/gohufont-otb/gohufont.otb /usr/share/fonts/misc/gohufont.otb /usr/share/fonts/local/gohufont-uni-14.pcf.gz
/usr/share/fonts/gohufont-otb/gohufont.otb is owned by gohufont-otb 2.1-8
error: No package owns /usr/share/fonts/misc/gohufont.otb
error: No package owns /usr/share/fonts/local/gohufont-uni-14.pcf.gz
$ fc-cache -rsv
Font directories:
/usr/share/fonts
/usr/local/share/fonts
/usr/share/fonts/100dpi
/usr/share/fonts/75dpi
/usr/share/fonts/OTF
/usr/share/fonts/TTF
/usr/share/fonts/Type1
/usr/share/fonts/adobe-source-code-pro
/usr/share/fonts/cantarell
/usr/share/fonts/droid
/usr/share/fonts/encodings
/usr/share/fonts/gohufont-otb
/usr/share/fonts/liberation
/usr/share/fonts/local
/usr/share/fonts/misc
/usr/share/fonts/util
/usr/share/fonts/encodings/large
/usr/share/fonts: caching, new cache contents: 0 fonts, 14 dirs
/usr/share/fonts/100dpi: caching, new cache contents: 398 fonts, 0 dirs
/usr/share/fonts/75dpi: caching, new cache contents: 398 fonts, 0 dirs
/usr/share/fonts/OTF: caching, new cache contents: 23 fonts, 0 dirs
/usr/share/fonts/TTF: caching, new cache contents: 51 fonts, 0 dirs
/usr/share/fonts/Type1: caching, new cache contents: 29 fonts, 0 dirs
/usr/share/fonts/adobe-source-code-pro: caching, new cache contents: 30 fonts, 0 dirs
/usr/share/fonts/cantarell: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/droid: caching, new cache contents: 27 fonts, 0 dirs
/usr/share/fonts/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/gohufont-otb: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/liberation: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/local: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/misc: caching, new cache contents: 137 fonts, 0 dirs
/usr/share/fonts/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/share/fonts: skipping, no such directory
/usr/share/fonts/100dpi: skipping, looped directory detected
/usr/share/fonts/75dpi: skipping, looped directory detected
/usr/share/fonts/OTF: skipping, looped directory detected
/usr/share/fonts/TTF: skipping, looped directory detected
/usr/share/fonts/Type1: skipping, looped directory detected
/usr/share/fonts/adobe-source-code-pro: skipping, looped directory detected
/usr/share/fonts/cantarell: skipping, looped directory detected
/usr/share/fonts/droid: skipping, looped directory detected
/usr/share/fonts/encodings: skipping, looped directory detected
/usr/share/fonts/gohufont-otb: skipping, looped directory detected
/usr/share/fonts/liberation: skipping, looped directory detected
/usr/share/fonts/local: skipping, looped directory detected
/usr/share/fonts/misc: skipping, looped directory detected
/usr/share/fonts/util: skipping, looped directory detected
/usr/share/fonts/encodings/large: skipping, looped directory detected
/var/cache/fontconfig: cleaning cache directory
fc-cache: succeeded
Last edited by steve___ (2021-02-24 17:12:09)
Offline
/usr/share/fonts/gohufont-otb: caching, new cache contents: 2 fonts, 0 dirs
fc-list | grep -i gohu
Online
That command returns nothing.
Offline
fc-list | curl -F 'f:1=<-' ix.io
Post the link.
Online
Offline
bogus user cache?
sudo fc-list | grep -i gohu
fc-cache -rsv
Online
$ sudo fc-list | grep -i gohu ## returns nothing
$ fc-cache -rsv ## returns -- http://ix.io/2QHj
Offline
grummelbrummelgrummelbrummelgrummelbrummel…
fc-conflist
Next stop:
strace fc-list 2>&1 | curl -F 'f:1=<-' ix.io
(but I hope you just activated 70-no-bitmaps.conf …)
Online
$ fc-conflist ## http://ix.io/2QJD
$ strace fc-list 2>&1 | curl -F 'f:1=<-' ix.io ## http://ix.io/2QJJ
Last edited by steve___ (2021-02-24 22:04:11)
Offline
HAH!
+ /etc/fonts/conf.d/70-no-bitmaps.conf: Reject bitmap fonts
=> Remove that symlink.
Online
You, kind sir, are a gentleman and a scholar.
Offline
Pages: 1