[SOLVED] How install X11 font?

Non release banter
Post Reply
User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

[SOLVED] How install X11 font?

Post#1 by Slaxmax » 25 Sep 2014, 06:26

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
Last edited by Slaxmax on 28 Sep 2014, 00:51, edited 1 time in total.
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
wread
Module Guard
Module Guard
Posts: 1080
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: How install X11 font?

Post#2 by wread » 25 Sep 2014, 12:27

@Slaxmax
You may try this link to see if the fonts you need are contained there...

Good luck!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
fanthom
Site Admin
Site Admin
Posts: 4590
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: How install X11 font?

Post#3 by fanthom » 25 Sep 2014, 16:28

dropping fonts to '/usr/share/fonts/some_folder' should be enough.
Please add [Solved] to your thread title if the solution was found.

User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: How install X11 font?

Post#4 by Slaxmax » 25 Sep 2014, 21:11

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
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: How install X11 font?

Post#5 by Slaxmax » 28 Sep 2014, 00:50

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/
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

Post Reply