9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.63k stars 322 forks source link

imageinit: can't open font #45

Open Mitsos101 opened 8 years ago

Mitsos101 commented 8 years ago

The fonts in /usr/lib/plan9 work. Running under Linux/X11.

[user@Firemagic ~]$ fontsrv & 
[1] 2631
[user@Firemagic ~]$ Fontconfig error: "/home/user/.config/fontconfig/fonts.conf", line 1: XML or text declaration not at start of entity
Fontconfig error: "/home/user/.config/fontconfig/fonts.conf", line 1: XML or text declaration not at start of entity

[user@Firemagic ~]$ 9p ls font/Ubuntu
10
10a
11
11a
12
12a
13
13a
14
14a
15
15a
16
16a
17
17a
18
18a
19
19a
20
20a
22
22a
24
24a
28
28a
4
4a
5
5a
6
6a
7
7a
8
8a
9
9a
[user@Firemagic ~]$ 9p ls font/Ubuntu/24a
font
x0000.bit
x0100.bit
x0200.bit
x0300.bit
x0400.bit
x1e00.bit
x1f00.bit
x2000.bit
x2100.bit
x2200.bit
x2500.bit
xe000.bit
xef00.bit
xf000.bit
xf200.bit
xf500.bit
xf800.bit
xfb00.bit
[user@Firemagic ~]$ acme -f /mnt/font/Ubuntu/24a/font
imageinit: can't open font /mnt/font/Ubuntu/24a/font: 
acme: can't open display: 
[user@Firemagic ~]$ 
rbns commented 8 years ago

i have the same problem. as additional info: i get what looks like random garbage bytes in place of the unicode replacement rune above.

some output from multiple runs:

imageinit: can't open font /mnt/font/Pfennig/12a/font:  PV4[
acme: can't open display:  PV4[
imageinit: can't open font /mnt/font/Pfennig/12a/font:  �
acme: can't open display:  �
imageinit: can't open font /mnt/font/Pfennig/12a/font:   �[
acme: can't open display:   �[
imageinit: can't open font /mnt/font/Pfennig/12a/font:  �{M[
acme: can't open display:  �{M[

9p ls font/Pfennig/12a/font works fine like for @Mitsos101

i'd like to help, but never really debugged a plan9(port) program so far ;)

edit: I tested the method using 9pfuse described here, which while a bit ugly works: https://groups.google.com/d/msg/plan9port-dev/P817yhWUw2A/EpE44GlJoQsJ but as russ commented there, it should work without this.

donuts-are-good commented 4 months ago

running into this same issue right now, @rbns fancy seeing you here ;)