1 |
Ok, tried again... |
2 |
|
3 |
It seems that X don't like spaces in font file names. |
4 |
I also removed spaces in the core font name so I dont |
5 |
need to "quotify". |
6 |
|
7 |
What seems to be missing from my previous attempt, is |
8 |
the mkfontdir/scale runs. |
9 |
|
10 |
$ cp -r /usr/share/fonts/courier-prime/ prime |
11 |
$ cd prime/ |
12 |
$ list=`ls -1 | grep Cour | tr ' ' '_'` |
13 |
$ for i in $list; do b=`echo $i | tr '_' ' '`; mv "$b" $i; done |
14 |
$ perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.dir |
15 |
$ perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.scale |
16 |
$ mkfontdir . |
17 |
$ mkfontscale . |
18 |
$ cat fonts.dir | sed -n '5p' |
19 |
Courier_Prime_Italic.ttf -misc-courier_prime-medium-i-normal--0-0-0-0-m-0-iso10646-1 |
20 |
$ xset fp+ /home/karl/prime |
21 |
$ xfd -fn -misc-courier_prime-medium-i-normal--0-0-0-0-m-0-iso10646-1 & |
22 |
$ xwd -out xfd.dump |
23 |
$ file xfd.dump |
24 |
xfd.dump: XWD X Window Dump image data, "xfd", 688x641x24 |
25 |
$ xwdtopnm < xfd.dump | pnmtojpeg > xfd.jpg |
26 |
|
27 |
xfd.jpg is attached. |
28 |
|
29 |
$ xterm -fn -misc-courier_prime-medium-i-normal--0-0-0-0-m-0-iso10646-1 |
30 |
$ xwd -out xterm.xwd |
31 |
$ xwdtopnm < xterm.xwd | pnmtojpeg > xterm.jpg |
32 |
xwdtopnm: writing PPM file |
33 |
$ |
34 |
|
35 |
xterm.jpg is attached. |
36 |
|
37 |
As you can see, it is as the font is double spaced. |
38 |
|
39 |
This one says you need LC_ALL=C defined. |
40 |
https://www.thegeekdiary.com/warning-missing-charsets-in-string-to-fontset-conversion-how-to-resolve-the-xclock-warning-message/ |
41 |
This one says you need nls use flag enabled. |
42 |
https://forums.gentoo.org/viewtopic-t-739586-start-0.html |
43 |
|
44 |
Regards, |
45 |
/Karl Hammar |