You are not logged in.

#1 2023-03-16 10:27:42

knarh
Member
Registered: 2023-03-11
Posts: 58

[Solved]Bitmap font isn't defined

Hello,
I've installed bitmap ProFont font(pcf), but it isn't defined  by xlsfonts. But otb version works

fc-cache -v: http://ix.io/4qY5
fc-list | grep "profont": http://ix.io/4qY7

But bdf Terminus font is determined by xlsfonts.

Where can be a problem?

Thanks in advance

Last edited by knarh (2023-03-17 07:22:19)

Offline

#2 2023-03-16 13:07:40

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

Re: [Solved]Bitmap font isn't defined

What do you mean by "isn't defined  by xlsfonts" and, quite frankly, why do you care?
pango has dropped pcf support some years ago, you *want* to use the otb font, because the pcf one won't work in any gtk client.

Edit: https://bbs.archlinux.org/viewtopic.php?id=248032

Last edited by seth (2023-03-16 13:09:17)

Online

#3 2023-03-16 15:41:32

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [Solved]Bitmap font isn't defined

Thank you for answering, seth
I saw a  warning in fonts wiki about pango but didn't pay attention.
Is pango is a part of gtk, so bdf and pcf fonts don't work in gtk applications?   
I don't really need the pcf version, I care about this because I want to deal with the problem in principle, and the only way I know to check installed bitmap font is xlsfonts command

And Seth or seth?

Last edited by knarh (2023-03-16 15:43:59)

Offline

#4 2023-03-16 15:53:07

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

Re: [Solved]Bitmap font isn't defined

"gtk relies on pango", so yes "bdf and pcf fonts don't work in gtk applications"
Because of that you want to use the otb font.

xlsfonts lists the fonts the server knows about, that's not relevant for most clients (as they use fontconfig) and not related to the pango situation.
What are the actual ProFont packages you tried? (The font location will somewhat matter in relation to the X11 font paths)

But again: for practical purposes that's borderline irrelevant. You'll rarely use X11 server fonts.

My pronouns are "whatever makes you happy/cause I don't give a fuck" wink
But the board nick is "seth".

Online

#5 2023-03-16 16:20:24

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [Solved]Bitmap font isn't defined

ok, I WANT to use otb font)

I downloaded 7z archive from here https://tobiasjung.name/profont/, then unzip and move directory to /usr/share/fonts/(added needed PathFont to X config) delete all trash like readme beside files with .pcf  in names.

And what do you mean by "most clients"? Applications that don't use pango and gtk?

Font is in the /usr/share/fonts/profont-x11 directory

ls /usr/share/fonts/profont-x11

ProFont_r400-10.pcf  ProFont_r400-11.pcf  ProFont_r400-12.pcf  ProFont_r400-15.pcf  ProFont_r400-17.pcf  ProFont_r400-22.pcf  ProFont_r400-29.pcf

Last edited by knarh (2023-03-16 16:21:29)

Offline

#6 2023-03-16 16:32:05

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

Re: [Solved]Bitmap font isn't defined

Almost nothing uses X11 server fonts these days.
Certainly not GTK or Qt but also not whatever else you're most likely using.

ls /usr/share/fonts/profont-x11

https://man.archlinux.org/man/extra/xor … n#FontPath
https://wiki.archlinux.org/title/font_c … Font_paths

Keep in mind that Xorg does not search recursively through the /usr/share/fonts/ directory like Fontconfig does. To add a path, the full path must be used:

Online

#7 2023-03-16 17:10:12

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [Solved]Bitmap font isn't defined

I ran

grep fonts /var/log/Xor.0.log

and there was something like "/usr/share/fonts/profont-x11 doesn't exist, run mkfontdir" I ran and all is fine. profont is defined by xlsfonts.

But I have another small problem: after making font directory for terminus too I have terminus font from package and from tar.gz(in fonts/terminus-4.49-1), so in xlsfonts in duplicates like

-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
-xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
-xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
-xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1
-xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1

So I just need to remove package? (I want to save manually installed version)

I understood that I perhaps will never use bitmap fonts beside terminal emulator, so can I use these fonts in tty? and can be in tty not a bitmap font?

Last edited by knarh (2023-03-16 17:16:33)

Offline

#8 2023-03-16 20:40:50

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

Re: [Solved]Bitmap font isn't defined

The console ("tty") uses completely different fonts, https://wiki.archlinux.org/title/Linux_console#Fonts
You can use bitmap fonts in most GUI clients.

So I just need to remove package? (I want to save manually installed version)

Probably, but why do you want to have/keep a manually controlled version over the repo package?

Online

#9 2023-03-17 07:21:44

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [Solved]Bitmap font isn't defined

Removing the package worked
Thanks for help, seth

Offline

Board footer

Powered by FluxBB