You are not logged in.

#1 2021-02-24 04:20:13

steve___
Member
Registered: 2008-02-24
Posts: 452

[Solved] xft:gohufont not working

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

#2 2021-02-24 07:04:13

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

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)?

Offline

#3 2021-02-24 14:35:35

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

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

#4 2021-02-24 14:58:39

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

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?

Offline

#5 2021-02-24 15:42:47

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

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

#6 2021-02-24 16:09:14

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

Why do you have the ttf font installed locally for the root user and why do you operate as root itfp?

Offline

#7 2021-02-24 16:56:41

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

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

#8 2021-02-24 17:02:45

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

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

Offline

#9 2021-02-24 17:11:41

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

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

#10 2021-02-24 17:13:32

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

/usr/share/fonts/gohufont-otb: caching, new cache contents: 2 fonts, 0 dirs

fc-list | grep -i gohu

Offline

#11 2021-02-24 17:20:00

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

That command returns nothing.

Offline

#12 2021-02-24 17:22:32

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

fc-list | curl -F 'f:1=<-' ix.io

Post the link.

Offline

#13 2021-02-24 17:31:28

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

Offline

#14 2021-02-24 17:36:23

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

bogus user cache?

sudo fc-list | grep -i gohu
fc-cache -rsv

Offline

#15 2021-02-24 17:45:04

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

$ sudo fc-list | grep -i gohu  ## returns nothing
$ fc-cache -rsv   ## returns -- http://ix.io/2QHj

Offline

#16 2021-02-24 21:51:50

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

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 …)

Offline

#17 2021-02-24 22:02:39

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

$ 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

#18 2021-02-24 22:29:00

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [Solved] xft:gohufont not working

HAH!

+ /etc/fonts/conf.d/70-no-bitmaps.conf: Reject bitmap fonts

=> Remove that symlink.

Offline

#19 2021-02-24 22:41:04

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [Solved] xft:gohufont not working

You, kind sir, are a gentleman and a scholar.

Offline

Board footer

Powered by FluxBB