Fonts, xorg-6.8.1

Questions, suggestions, and answers for XnView on all Un*x platforms (Linux, HP-UX, AIX, ...)

Moderators: XnTriq, xnview

Post Reply
User avatar
Remi
Posts: 23
Joined: Mon May 24, 2004 5:08 pm
Location: France, Champagne
Contact:

Fonts, xorg-6.8.1

Post by Remi » Fri Nov 12, 2004 7:58 pm

Bonjour,

Comme d'autre je suis passé à Fedora Core 3 et donc à xorg-6.8.1.

XnView s'ouvre mais dès que l'on veux faire "File / Open" il plante et affiche :

Code: Select all

X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  3552
  Current serial number in output stream:  3570
J'ai vérifier le fichier de configuration /usr/X11R6/lib/X11/app-defaults/XnView et toutes les fonts indiquées sont bien présentes sur ma machine.

J'ai donc mené mon investigation (détournement de xfs et écoute par tcpdump).
J'ai découvert qu'il demande la police:

Code: Select all

-*-lucidatypewriter-medium-r-normal-*-*-120-75-75-*-*-iso8859-1
Bon je vais essayer de trouver cette font mais si on pouvait rajouter une ligne qui va bien dans le fichier de prefs...

Amicalement...
Remi.

User avatar
xnview
Author of XnView
Posts: 31738
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Fonts, xorg-6.8.1

Post by xnview » Sat Nov 13, 2004 11:01 am

Remi wrote:J'ai découvert qu'il demande la police:

Code: Select all

-*-lucidatypewriter-medium-r-normal-*-*-120-75-75-*-*-iso8859-1
Bon je vais essayer de trouver cette font mais si on pouvait rajouter une ligne qui va bien dans le fichier de prefs...
Oh oui effectivement, c'est la combo box. Je corrigerais cela.
Pierre.

Chess

Post by Chess » Fri Nov 19, 2004 4:27 pm

Is there any solution already how /usr/X11R6/lib/X11/app-defaults/XnView must be modified in order to work?

Many thanks in advance. :)

User avatar
xnview
Author of XnView
Posts: 31738
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Sat Nov 20, 2004 10:14 am

Chess wrote:Is there any solution already how /usr/X11R6/lib/X11/app-defaults/XnView must be modified in order to work?
These fonts are fixed in XnView :-(
Pierre.

Chess

Post by Chess » Sat Nov 20, 2004 10:20 am

Not sure if I can be of any help, but trying to be:

I installed all versions of XnView for *nix (1.68.1 static, 1.68.1 openmotif, 1.5 lesstif), all installed fine and started fine as well. When opening any dialog, all of them exit with the same error message Remi mentioned above. Modifying or even deleting /usr/X11R6/lib/X11/app-defaults/XnView did not help or change anything.

My system configuration (Fedora CORE 3):

uname -a
Linux localhost 2.6.9-1.678_FC3 #1 Mon Nov 15 18:28:07 EST 2004 i686 athlon i386 GNU/Linux

xorg 6.8.1
openmotif-2.2.3-6
lesstif-0.93.36-6
glibc-2.3.3-74

User avatar
Remi
Posts: 23
Joined: Mon May 24, 2004 5:08 pm
Location: France, Champagne
Contact:

Installing mising fonts.

Post by Remi » Sat Nov 20, 2004 10:43 am

Here is a solution which work fine for me on Fedora Core 3 and xorg-6.8.1

1/ download old fonts packages from xorg-6.7.0 used on Fedora Core 2
2/ extract lucidatypewriter (lutRS12-ISO8859-1.pcf.gz)
3/ install it
4/ run XnView and enjoy it.
5/ wait for next Un*x release of XnView :wink:

Code: Select all

cd /tmp
wget [your_FC2_mirror]/xorg-x11-100dpi-fonts-6.7.0-10.i386.rpm
wget  [your_FC2_mirror]/xorg-x11-75dpi-fonts-6.7.0-10.i386.rpm
rpm2cpio xorg-x11-100dpi-fonts-6.7.0-10.i386.rpm | cpio -id
rpm2cpio xorg-x11-75dpi-fonts-6.7.0-10.i386.rpm | cpio -id
cd /tmp/usr/X11R6/lib/X11/fonts
cp 100dpi/lutRS12-ISO8859-1.pcf.gz /usr/X11R6/lib/X11/fonts/100dpi/
cp 75dpi/lutRS12-ISO8859-1.pcf.gz /usr/X11R6/lib/X11/fonts/75dpi/
mkfontdir /usr/X11R6/lib/X11/fonts/100dpi
mkfontdir /usr/X11R6/lib/X11/fonts/75dpi

I think you only need the 75dpi font but I also include the cmd for the 100dpi one.

Cordialy.

Guest

Post by Guest » Sat Nov 20, 2004 4:47 pm

Thank you very much Remi. I did as you said, it didn't work immediately, but after a reboot all worked like a charm. :) Now I am at 5/ :wink:

And @ Pierre: Thank you very much for this great program. I am not too long with Linux yet (less than a year), but I did try several picture viewers already. I cannot say all are "bad", but XnView seems to have a lot more features than most. I really like it a lot. :)

So once more thanks, and I am stuck at 5/ for now. :D

panda

Gentoo Instructions

Post by panda » Sun Nov 28, 2004 4:46 pm

Since I noticed some Gentoo users having the same issue, here's the Gentoo-ish way of doing it. :) Should apply for anyone else with a non-RPM based distro, just substitute the mkfontdir step from Remi's and paths from your distro.

Download said font package. I found it off Google. Specifically, here.

(I use sudo, which is why I chown it.. you'll still want to chmod, though!)

Code: Select all

chown root:root lutRS12-ISO8859-1.pcf.gz
chmod 444 lutRS12-ISO8859-1.pcf.gz
mv lutRS12-ISO8859-1.pcf.gz /usr/share/fonts/75dpi/
/etc/init.d/xfs mkfontdirs
Now restart X. You won't have to reboot, but can if it just makes you happy. XFS normally re-scans on setup, so reboot if you want to skip the mkfontsdir step.

And there you have it. With any luck, you'll be back to running XnView like before. :)

If you don't run XFS.. good luck, you're on your own. ^^;

Guest

Post by Guest » Tue Nov 30, 2004 9:50 pm

Hi,

hi have solved the Problem on my Machine (Debian Sarge, X.org 6.8.1). Change the Font-Path Elements in /etc/X11/xorg.conf to:

Code: Select all


Section "Files"
   FontPath   "unix/:7100"         # local font server
   # if the local font server has problems, we can fall back on these
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/CID"
   FontPath   "/usr/X11R6/lib/X11/fonts/Speedo"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
EndSection
Thats it, now xnview 1.50 works fine on my System.

Greets
Chris

naomi

error

Post by naomi » Sun Jan 09, 2005 12:51 am

Anonymous wrote:

Code: Select all


Section "Files"
   FontPath   "unix/:7100"         # local font server
   # if the local font server has problems, we can fall back on these
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/CID"
   FontPath   "/usr/X11R6/lib/X11/fonts/Speedo"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
EndSection
did you just add the last two lines? i just downloaded the linux version and got the same error. my xorg.conf looks similar though except for the last two lines...

ps: i have suse 9.2 prof.

naomi

ps:

Post by naomi » Sun Jan 09, 2005 12:57 am

maybe it's useful to post the complete message i get, when it crashes - for example if when converting a picture. i hope somebody can help, because xnview is probably the best viewer. i had a copy on my windows machine and was so happy, when i read it's also available for unix systems!

cheers,
naomi

Code: Select all

** XnView v1.68.1 Copyright 1991-2004 Pierre-E Gougelet (Feb 17 2004/13:52:01) *
*
        Version for Linux x86/Motif (All rights reserved)
** This is freeware software (for non commercial use)

     Type xnview -help, for more information
Warning: locale not supported by C library, locale unchanged
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  4706
  Current serial number in output stream:  4769

covex

Re: Installing mising fonts.

Post by covex » Tue Jan 25, 2005 11:35 am

Remi wrote:Here is a solution which work fine for me on Fedora Core 3 and xorg-6.8.1

1/ download old fonts packages from xorg-6.7.0 used on Fedora Core 2
2/ extract lucidatypewriter (lutRS12-ISO8859-1.pcf.gz)
3/ install it
4/ run XnView and enjoy it.
5/ wait for next Un*x release of XnView :wink:

Code: Select all

cd /tmp
wget [your_FC2_mirror]/xorg-x11-100dpi-fonts-6.7.0-10.i386.rpm
wget  [your_FC2_mirror]/xorg-x11-75dpi-fonts-6.7.0-10.i386.rpm
rpm2cpio xorg-x11-100dpi-fonts-6.7.0-10.i386.rpm | cpio -id
rpm2cpio xorg-x11-75dpi-fonts-6.7.0-10.i386.rpm | cpio -id
cd /tmp/usr/X11R6/lib/X11/fonts
cp 100dpi/lutRS12-ISO8859-1.pcf.gz /usr/X11R6/lib/X11/fonts/100dpi/
cp 75dpi/lutRS12-ISO8859-1.pcf.gz /usr/X11R6/lib/X11/fonts/75dpi/
mkfontdir /usr/X11R6/lib/X11/fonts/100dpi
mkfontdir /usr/X11R6/lib/X11/fonts/75dpi

I think you only need the 75dpi font but I also include the cmd for the 100dpi one.

Cordialy.
This works for me too. Only 75dpi was needed for me. Also you do not have to restart whole system, restarting X and/or xfs is enough.

Toli

SUSE 9.2 fix

Post by Toli » Sat Feb 19, 2005 5:12 am

Hi Naomi.

Here's the scoop for SUSE 9.2:

1. Go to:

http://www.slackware.com/pb/download.ph ... 0-noarch-1

and download the package from a mirror into a local temporary directory.
Name the file 'x11-fonts-misc-6.7.0-noarch-1.tgz'

2. Run

tar xzvf x11-fonts-misc-6.7.0-noarch-1.tgz

to extract its complete contents in the temp dir.

3. Run (as root)

cp usr/X11R6/lib/X11/fonts/75dpi/lutRS12-ISO8859-1.pcf.gz /usr/X11R6/lib/X11/fonts/75dpi/
mkfontdir /usr/X11R6/lib/X11/fonts/75dpi

which copy the missing font in the X font repository and update the
directory files.

4. Delete your temporary directory.

5. Restart your X server, which typically means ending the current session
(logging out) and starting a new one (logging in), without rebooting the
machine necessarily.

Many thanks to all the guys who did the hard work of figuring out what was wrong.

Cheers!

User avatar
Remi
Posts: 23
Joined: Mon May 24, 2004 5:08 pm
Location: France, Champagne
Contact:

Fonts are back !

Post by Remi » Sun Feb 27, 2005 4:48 pm

Just a info for Fedora Core 3 users.

The missing fonts are back in the version 6.8.1.1 from rawhide.

David S.

Post by David S. » Sat Jun 18, 2005 4:27 pm

SuSE 9.2 users, do a YaST Online Update and select the updates for the packages "xorg-x11-fonts-75dpi" and "xorg-x11-fonts-100dpi". I don't know if both are necessary, but it does no harm. The missing fonts are in these packages. All future versions from SuSE 9.3 on should include them by default again.

Post Reply