Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: MrToga on May 18, 2022, 08:05:09 AM
-
Hi everyone,
I'm triyng to add some fonts into X11 because when i try to launch an ihm from my server to my rasp ihm -d 192.168.3.16:0.0
I get an error that said can't load
-adobe-*-bold-o-normal--14-*-*-*-m-*-iso8859-l
So with this error I am thinking that I am missiong fonts on my rasp and after getting the server's fonts file I wanted to put this fonts file in /usr/local/share/fonts and then do fc-cache -f -v
but after Iv'e done it only the fonts files with the .ttf extension shows up in fc-list and I also have .afm file (they doesn't show up with fc-list) in my fonts but I don't know where to put this files in tiny core.
Any toughts ?
-
Update :
I found a repertory that use type 1 in /usr/local/lib/X11/fonts/Type1 so I put all my .afm files in it but after I do fc-cache -f -v
It return :
/usr/local/lib/X11/fonts/Type1: skipping,looped directory detected
So in the end he still doesn't detect my .afm files
-
That app, whatever it is, uses old X fonts, not freetype/fontconfig. So fc-cache is not what you should use.
After putting the font files in the proper dir and updating the indexes with mkfontdir/mkfontscale, restart your X server. Use "xlsfonts" to see which old-style fonts are available.
edit: The mentioned font seems to be -adobe-courier-bold-o-normal--14-140-75-75-m-90-iso885, which is usually 75dpi/courBO14-ISO8859-1.pcf.gz.
-
Hi curaga,
Thanks for your response but my xlsfonts doesn't seem to work because when I try to launch it say's that :
-sh xlsfonts: not found
But with the command which xlsfonts
It find it in /usr/local/bin/xlsfonts
And this file has a symlink to /tmp/tcloop/Xlibs/usr/bin/xlsfont
Also I don't know which package contain mkfontdir/mkfontscale
Thanks in advance
-
Update :
After I've install xlsfonts mkfontdir mkfontscale on my rasp I try to run this command for my repertory of .afm fonts but mkfontdir does'nt recognize .afm file.
Because mkfontdir only search for .pcf .sn and .bdf file.
So now I'm stuck
-
Update:
I found courBO14-ISO8859-1.pcf.gz. so I put this file in /usr/lib/X11/fonts/75dpi/ but when I try to use mkfontdir -e /usr/lib/X11/fonts/75dpi he create me the file fonts.dir but in this file there only the content of file that where not symlink. I also found out that the fonts used for my xserver are place in /usr/local/lib/X11/fonts/ in this repertory theres a symlink for 75dpi that go to /tmp/tcloop/Xlibs/usr/local/lib/X11/fonts/75dpi/ . Can I change the symlink to /usr/lib/X11/fonts/75dpi/ or can I directly put my new .pcf.gz file in /tmp/tcloop/Xlibs/usr/local/lib/X11/fonts/75dpi/ to make it persistent ?
-
Update :
After some research I found out that I can use xset fp+ $PWD to add a fonth path to my server but when I try it I keep getting this error :
xset: bad font path element (#3), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
I change all the permission et I also have fonts.dir and fonts.alias in my repertory (see attached files).
Any toughts ?
-
Have you checked where xorg-server is looking for the fonts?
In /var/log/Xorg.0.log you should see something like this: [ 18.591] (==) FontPath set to:
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/75dpi/
-
Yes I just checked and I found it (I created a file in xorg.conf.d that specified the location of the fonts file) but still doesn't work and in xlsfonts I still doesn't see my new fonts
-
Did you restart the x server?
-
yes and I still have the error
-
Update :
My edit of fonts.alias was wrong it work now but is there a command that create and edit the font.alias file ?
-
Hi MrToga
You could add the fonts.alias file to your backup.
Or you could:
echo "alias /Full/Path/To/FontName" >> /Full/Path/To/fonts.alias
If the X server is already running, you might also need to:
xset fp rehash
http://osr507doc.sco.com/en/GECG/X_Font_ProcFnAlias.html
-
xlsfonts updated in Xlibs - it works now.
-
mkfontscale posted