Page 1 of 1

[SOLVED] How install X11 font?

Posted: 25 Sep 2014, 06:26
by Slaxmax
X11 not see TTF fonts folder

I need run cat_osd inluded in xosd package (Show text in screen), but the system have only these fonts
to list need install xlsfonts package

Code: Select all

root@porteus:/home/guest# xlsfonts
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed
I tried this tutorial to install http://how-to.wikia.com/wiki/How_to_ins ... dows_fonts
section tutorial:
..."
-----------------------------------------------------------------------------------------------------------------------------
Refresh font cacheEdit

Temporary
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash

Permanently
Execute the following
xset fp+ /usr/share/fonts/TTF/
xset fp rehash
fc-cache
Restart any program that you want to use the new fonts

Testing fonts

% xterm -fn -ETL-Fixed-Medium-R-Normal—14-140-72-72-C-70-ISO8859-1 &
---------------------------------------------------------------------------------------------------------------
"...
but show errors

Code: Select all

root@porteus:/home/guest# xset fp+ /usr/X11/lib/X11/fonts/TTF/ 
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
in this cat_osd tutorial the guy used linux mint and have one hundred fonts http://www.youtube.com/watch?v=pyUyUUaJkMk

Thanks for help

Re: How install X11 font?

Posted: 25 Sep 2014, 12:27
by wread
@Slaxmax
You may try this link to see if the fonts you need are contained there...

Good luck!

Re: How install X11 font?

Posted: 25 Sep 2014, 16:28
by fanthom
dropping fonts to '/usr/share/fonts/some_folder' should be enough.

Re: How install X11 font?

Posted: 25 Sep 2014, 21:11
by Slaxmax
Thanks wread, works fine.
I "understand" now how the structure of these fonts. I had never seen font with .pcf extension.
Now I need large font
fanthom wrote:dropping fonts to '/usr/share/fonts/some_folder' should be enough.
This method does not work for the purpose.

Thanks for help guys

Re: How install X11 font?

Posted: 28 Sep 2014, 00:50
by Slaxmax
Thanks guys

ZIP package
http://www.mediafire.com/download/njn64 ... D-i486.zip
included font scalable bitstream
xlsfonts (list fonts)
xosd (cat_osd)

example

Code: Select all

guest@porteus:~$ echo "Porteus OSD" | osd_cat -A center  -s 5 -S black -c yellow -d 10 -f -bitstream-courier*10*pitch-medium-r-normal--150-0-0-0-m-0-iso8859-1*
Image

list X11 fonts sources
ftp://ftp.x.org/pub/individual/font/