Problems xnview and kubuntu (missing font)

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

Moderators: helmut, XnTriq, xnview

Problems xnview and kubuntu (missing font)

Postby Dieter » Thu Apr 27, 2006 9:09 am

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
Dieter
 

Re: Problems xnview and kubuntu (missing font)

Postby xnview » Thu Apr 27, 2006 9:20 am

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.
User avatar
xnview
Author of XnView
 
Posts: 26842
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problems xnview and kubuntu (missing font)

Postby Guest » Thu Apr 27, 2006 11:15 am

Hi,

xnview wrote:Try to install addon font package


sorry, but what is addon font package?

Ciao!
Dieter
Guest
 

LA reponse

Postby Gollum » Thu Aug 31, 2006 7:11 pm

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
Gollum
 

Any other ideas?

Postby sardion » Mon Sep 18, 2006 11:19 pm

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?
sardion
 

Helvetica font issue - Linux

Postby bwh1969 » Mon Dec 31, 2007 12:16 am

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.
bwh1969
 
Posts: 11
Joined: Mon Dec 31, 2007 12:09 am

Re: Helvetica font issue - Linux

Postby oops66 » Sat Feb 02, 2008 11:15 pm

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 0.82 Linux X64 - Ubuntu 16.04 LTS - X64
User avatar
oops66
XnThusiast
 
Posts: 1998
Joined: Tue Jul 17, 2007 1:17 am
Location: France


Return to XnView Un*x

Who is online

Users browsing this forum: No registered users and 1 guest