Problems xnview and kubuntu (missing font)

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

Moderators: XnTriq, helmut, xnview

Dieter

Problems xnview and kubuntu (missing font)

Post by Dieter »

Hi,

I'm using kubuntu breezy and tried to install xnview.
When I ant to start xnview i get the following warnings:

Warning: Cannot convert string "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1" to type FontStruct
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: 504
Current serial number in output stream: 657

Then xnview disapear. How can I solve this problem?

Thanks!

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

Re: Problems xnview and kubuntu (missing font)

Post by xnview »

Dieter wrote:Hi,

I'm using kubuntu breezy and tried to install xnview.
When I ant to start xnview i get the following warnings:

Warning: Cannot convert string "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1" to type FontStruct
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: 504
Current serial number in output stream: 657

Then xnview disapear. How can I solve this problem?

Thanks!

Dieter
Try to install addon font package
Pierre.
Guest

Re: Problems xnview and kubuntu (missing font)

Post by Guest »

Hi,
xnview wrote: Try to install addon font package
sorry, but what is addon font package?

Ciao!
Dieter
Gollum

LA reponse

Post by Gollum »

Apres beaucoup de temps passe sur internet j'ai trouve la solution donc je la donne pour que tu ailles plus vite (sous debian, pour une autre distrib, ne pas faire apt-get install mais urpmi ou ce qu'il faut"):

Code: Select all

apt-get install ttmkfdir
cd /usr/local/share/fonts/ttfonts
ttmkfdir -o fonts.scale
apt-get install defoma fontconfig ttmkfdir cabextract
Puis editer le fichier

Code: Select all

vi /etc/X11/XF86Config-4
et remplacer la section "Files" par ceci

Code: Select all

        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
        FontPath        "/usr/share/fonts/truetype"
        FontPath        "/usr/local/share/fonts/truetype"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"

Et enfin pour être sûr :

Code: Select all

apt-get install xfonts-100dpi xfonts-100dpi-transcoded                 xfonts-75dpi xfonts-75dpi-transcoded                    xfonts-base xfonts-base-transcoded
apt-get install ttf-bitstream-vera
apt-get install ttf-junicode ttf-kochi-gothic ttf-kochi-mincho
sardion

Any other ideas?

Post by sardion »

I upgraded to edgy (unstable) and started getting the same errors:

Warning: Cannot convert string "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso8859-1" ...

and then xnview crashes.

I have *all* available fonts packages installed.

Anyone?
bwh1969
Posts: 11
Joined: Mon Dec 31, 2007 12:09 am

Helvetica font issue - Linux

Post by bwh1969 »

I have had to run XnView under wine. I can't install it in any linux distributiions, as I get this helvetica error. Arch, Slax... nothing.

It does continue to run in kubuntu for me, as I converted an RPM to a deb file a while ago and installed it that way. I have tried in Slax to do a deb2mo command, and the package loads fine, but I get the helvetica error I get from using the tar file.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Helvetica font issue - Linux

Post by oops66 »

bwh1969 wrote:I have had to run XnView under wine. I can't install it in any linux distributiions, as I get this helvetica error. Arch, Slax... nothing.
It does continue to run in kubuntu for me, as I converted an RPM to a deb file a while ago and installed it that way. I have tried in Slax to do a deb2mo command, and the package loads fine, but I get the helvetica error I get from using the tar file.
Hello,
Strange, the 1.70 Xnview version works for me on Ubuntu 7.10 gutsy without problems (the alpha MP version works too)!
Just to convert v1.70 rpm to deb (with alien, an ubuntu package)):
sudo alien -d XnView-static-fc4.i386.rpm
then install on ubuntu the created : xnview_1.70-2_i386.deb

maybe try to re-install this : msttcorefonts of line:
http://www.imaginux.com/ccount/click.php?id=38
then:
sudo fc-cache -f -v
XnViewMP Linux X64 - Debian - X64