You are not logged in.

#1 2017-11-28 20:31:07

keltek
Member
Registered: 2017-01-08
Posts: 53

[SOLVED] bitmap font not rendering properly

I am trying to use the Gohu bitmap font (http://font.gohu.org/) that I've downloaded from the AUR. However, with a supported font size of 14 in Termite I get very odd results. This is what my terminal font is actually rendered as, instead of the nice bitmap font it's supposed to be. It's clear there's a lot going wrong here but I'm not sure where to start.

The font line in my termite config is

font = Gohu 14px

Last edited by keltek (2017-11-28 21:30:31)

Offline

#2 2017-11-28 20:32:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] bitmap font not rendering properly

You probably have bitmap fonts disabled in your config: that isn't Gohu in the screenshot.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-11-28 20:36:40

keltek
Member
Registered: 2017-01-08
Posts: 53

Re: [SOLVED] bitmap font not rendering properly

I'm not sure what config you're referring to. I've explicitly linked the 70-yes-bitmaps.conf file from

/etc/fonts/conf.avail/

to

/etc/fonts/conf.d/

I thought that would be enough to activate it.

Offline

#4 2017-11-28 21:24:17

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

Re: [SOLVED] bitmap font not rendering properly

fc-match Gohu
fc-list | grep -i gohu
fc-cache -fv
fc-list | grep -i gohu

Online

#5 2017-11-28 21:25:31

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] bitmap font not rendering properly

I don't have Gohu installed but I can get Dina working with termite by using this line in ~/.config/termite/config:

font monospace 8

Then I set the monospace alias in ~/.config/fontconfig/fonts.conf:

<alias>
	<family>monospace</family>
	<prefer><family>Dina</family></prefer>
</alias>

Which gives:

empty@Xanadu:~ $ fc-match monospace
DinaMedium10.pcf.gz: "Dina" "Regular"
empty@Xanadu:~ $

So substituting "Gohu" in place of "Dina" should do the trick.

You may have to play around with the sizing because termite doesn't accept "pixelsize", "8" seems to be the same as "pixelsize=10" (which is the correct size for Dina).

Last edited by Head_on_a_Stick (2017-11-28 21:26:07)


Jin, Jîyan, Azadî

Offline

#6 2017-11-28 21:29:10

keltek
Member
Registered: 2017-01-08
Posts: 53

Re: [SOLVED] bitmap font not rendering properly

I'm an idiot. I wasn't aware that the format of fc-list output tells you what to specify. Specifically with this line

/usr/share/fonts/misc/gohufont-uni-14.pcf.gz: Gohu GohuFont:style=Regular

I'm being told to use

Gohu GohuFont

as the name for the font instead of just Gohu. I wasn't aware that the name I gave was invalid and so it was returning me a default font. Thanks for everyone's suggestions though. I still have a lot to learn about fonts so I'll keep digging.

Offline

Board footer

Powered by FluxBB