Results 1 to 8 of 8

Thread: xscreensaver missing fonts

  1. #1
    Join Date
    Sep 2007
    Location
    Norwich, UK
    Beans
    964

    xscreensaver missing fonts

    From a clean install of 12.04 from the 64-bit alternate CD, I added xscreensaver and all its demos. Unfortunately it reports missing fonts for some of them. For example:

    Code:
    starwars: font -*-utopia-bold-r-normal-*-*-720-*-*-*-*-iso8859-1 does not exist, using -*-helvetica-bold-r-normal-*-180-*
    starwars: font -*-helvetica-bold-r-normal-*-180-* does not exist, using fixed
    starwars: unable to load font "-*-utopia-bold-r-normal-*-*-720-*-*-*-*-iso8859-1", using "-*-helvetica-medium-r-normal-*-240-*"
    starwars: unable to load font "-*-helvetica-medium-r-normal-*-240-*", using "-*-helvetica-medium-r-normal-*-180-*"
    starwars: unable to load font "-*-helvetica-medium-r-normal-*-180-*", using "fixed"
    I've installed the texlive recommended fonts package which claims to contian utopia, but it hasn't made any difference - the fonts aren't even viewable in xfontsel.

    Any ideas what needs to be done to get these fonts properly registered and working in xscreesaver?

    Steve.
    Last edited by squaregoldfish; July 24th, 2012 at 10:42 PM. Reason: formatting

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: xscreensaver missing fonts

    Does:
    Code:
    sudo fc-cache -v -f
    ...get them registered properly?

  3. #3
    Join Date
    Sep 2007
    Location
    Norwich, UK
    Beans
    964

    Re: xscreensaver missing fonts

    Nope. Still the same message (ran as sudo and as me).

  4. #4
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: xscreensaver missing fonts


  5. #5
    Join Date
    Sep 2007
    Location
    Norwich, UK
    Beans
    964

    Re: xscreensaver missing fonts

    I think that's a different issue - xscreensaver has always had issues with UTF8 encodings, but accented Latin characters have been fine.

    The problem here is that none of the fonts that xscreensaver expects to use are installed in Ubuntu and the lettering therefore looks horrible. I can't figure out where to get them from.

    The fact that I've installed utopia fonts and yet xfontsel can't see them is indicative of a more fundamental issue that I haven't been able to figure out as yet.

    Steve.

  6. #6
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: xscreensaver missing fonts

    Quote Originally Posted by squaregoldfish View Post
    The fact that I've installed utopia fonts and yet xfontsel can't see them is indicative of a more fundamental issue that I haven't been able to figure out as yet.
    Agreed. I've just finished trying to install this font with no luck on precise and some luck on quantal.

    First, the font is hard-coded into the executable: http://xscreensaver.sourcearchive.co...8c-source.html. However, the font is no longer part of any official package in the repositories.

    You "should" be able to add this font to the existing system. I found the font here: http://set.ufpa.br/repositorio/pool/.../fonts/100dpi/, downloaded it and added it to /usr/share/fonts/X11/100dpi. Then did the regular stuff:
    Code:
    sudo mkfontdir
    sudo mkfontscale
    sudo xset fp rehash
    On precise, I get the following error when running xset:
    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
    On quantal, xset succeeds (shows up with xlsfonts), but when I try to run the program:
    Code:
    $ /usr/lib/xscreensaver/starwars -window
    starwars: stale texture font error: invalid enum
    I was, however, able to specify another font for the program to use:
    Code:
    /usr/lib/xscreensaver/starwars -font "-*-impact-bold-r-*-*-*-720-*-*-*-*-iso8859-1"
    ...and that worked perfectly.

  7. #7
    Join Date
    Sep 2007
    Location
    Norwich, UK
    Beans
    964

    Re: xscreensaver missing fonts

    So that should mean you can edit your .xscreensaver file and adjust the command line for the relevant savers to make them use a sensible font. I haven't tried it yet to confirm though.

    Steve.

  8. #8
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: xscreensaver missing fonts

    Quote Originally Posted by squaregoldfish View Post
    So that should mean you can edit your .xscreensaver file and adjust the command line for the relevant savers to make them use a sensible font. I haven't tried it yet to confirm though.

    Steve.
    Yes.

    Code:
     GL: 				starwars -root -font "-*-impact-bold-r-*-*-*-720-*-*-*-*-iso8859-1"		    \n\
    ...works for me.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •