cannot open font?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings --

I've had some problems installing fontconfig 2.2.94 -- it would exit
with make error 139, which trawling the net showed to be alleviated by
removing /usr/lib/X11/fonts/URW symlink, the only symlink there on my
(heavily updated) SuSE 7.1, pointing to /usr/share/ghostscript/fonts.
Later things would segfault if URW was put back or even replaced by a
full copy, so I just sort of left it out.

Now I have a problem with perl Gtk2/Pango, when trying to run a
short script called massrorate.  I posted to gtk-per list, but they
say it's a fontconfig/Pango problem.  That much I see, as gtk+ tests
work by themselves, showing boxes with text.  I attach the gtk-perl
message for reference.

The strange result is, massrotate would just segfault with no messages,
until I'd run gtk+ tests from its build directory, tests/.libs/.
Then it would create a ~/.font.cache-1 in my home directory, and
massrotate would do a new trick:

WARNING **: Cannot open font file for font Bitstream Charter 16 at /usr/local/bin/massrotate line 99.
Segmentation fault

Tracing in gdb shows it's pango.  However, I was getting messages
like unable to open default font configuration file, referring to
fontconfig.org, so I guess it's a pango/fontconfig interplay.
Does that warning above come from fontconfig?  It installed
/usr/local/etc/fonts/font.conf, and copying them around to /etc or
~/.fonts didn't help.  I'm running xfs, while font.conf refers to
explicit font directories -- where font.cache-1 properly exists.
The 16 size above comes from my ~/.gtkrc-2.0, and Bitstream Charter
seems to match everything.  In fc-match, I get this:

fc-match "Bitstream Charter 10"
Efont_Serif.ttf: "Efont Serif" "Regular"

And in /usr/lib/X11/fonts/truetype, I see 

ls /usr/lib/X11/fonts/truetype/
Efont_Serif.ttf       Efont_Serif_B.ttf   fonts.dir
Efont_Serif_A.ttf     Efont_Serif_BI.ttf  fonts.scale
Efont_Serif_A_B.ttf   Efont_Serif_I.ttf   fonts.scale.efont-serif-ttf
Efont_Serif_A_BI.ttf  encodings.dir
Efont_Serif_A_I.ttf   fonts.cache-1

So in order to show a little window to rotate a jpeg, I need to unravel
the whole font architecture!  :)  Is it pango, in your opinion, or
misconfigured fontconfig -- then how do I test the font *can* be rendered?
I use the default font.conf, except removing the URW from there.

-- 
Cheers,
Alexy Khrabrov :: www.setup.org :: Age Quod Agis
-------------- next part --------------
>From gtk-perl-list-bounces@xxxxxxxxx  Thu May 20 15:58:31 2004
Return-Path: <gtk-perl-list-bounces@xxxxxxxxx>
Received: from menubar.gnome.org (menubar.gnome.org [12.107.209.248])
	by angle.badbox.com (8.12.10/8.12.5) with ESMTP id i4KJwV5p010509
	for <list+gtk2perl@xxxxxxxxx>; Thu, 20 May 2004 15:58:31 -0400
Received: from menubar.gnome.org (localhost.localdomain [127.0.0.1])
	by menubar.gnome.org (Postfix) with ESMTP
	id 33A3A3B0D6F; Thu, 20 May 2004 12:13:40 -0400 (EDT)
X-Original-To: gtk-perl-list@xxxxxxxxx
Delivered-To: gtk-perl-list@xxxxxxxxx
Received: from angle.badbox.com (bgp543256bgs.ewndsr01.nj.comcast.net
	[68.38.148.149])
	by menubar.gnome.org (Postfix) with ESMTP id ADA323B0D71
	for <gtk-perl-list@xxxxxxxxx>; Thu, 20 May 2004 12:13:37 -0400 (EDT)
Received: from angle.badbox.com (localhost [127.0.0.1])
	by angle.badbox.com (8.12.10/8.12.5) with ESMTP id i4KGDs5p009058
	for <gtk-perl-list@xxxxxxxxx>; Thu, 20 May 2004 12:13:54 -0400
Received: (from alexy@localhost)
	by angle.badbox.com (8.12.10/8.12.10/Submit) id i4KGDs9c009051
	for gtk-perl-list@xxxxxxxxx; Thu, 20 May 2004 12:13:54 -0400
Date: Thu, 20 May 2004 12:13:53 -0400
From: Alexy Khrabrov <list+gtk2perl@xxxxxxxxx>
To: gtk-perl-list@xxxxxxxxx
Message-ID: <20040520161353.GA9042%alexy.khrabrov@xxxxxxxxx>
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
User-Agent: Mutt/1.5.4i-ja.1
X-DCC--Metrics: angle 1074; Body=1 Fuz1=1 Fuz2=1
X-Label: X-DCC--Metrics: angle 1074; Body=1 Fuz1=1 Fuz2=1
Subject: massrotate fontconfig, Gtk2
X-BeenThere: gtk-perl-list@xxxxxxxxx
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Using GTK+ with Perl <gtk-perl-list.gnome.org>
List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-perl-list>,
	<mailto:gtk-perl-list-request@xxxxxxxxx?subject=unsubscribe>
List-Archive: </archives>
List-Post: <mailto:gtk-perl-list@xxxxxxxxx>
List-Help: <mailto:gtk-perl-list-request@xxxxxxxxx?subject=help>
List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-perl-list>,
	<mailto:gtk-perl-list-request@xxxxxxxxx?subject=subscribe>
Sender: gtk-perl-list-bounces@xxxxxxxxx
Errors-To: gtk-perl-list-bounces@xxxxxxxxx
Status: RO
Content-Length: 1319
Lines: 37


Greetings -- I've found a simple script on freshmeat, massrotate,
which allows to quickly apply lossless jpegtran rotation to digital
photos.  The simplest thing, it shows pictures and lets one choose
which to rotate.  It's in perl-Gtk2.

http://freshmeat.net/projects/massrotate/

So I found my SuSE 7.1 lacking and got all the sources, glib,
fontconfig, xft, libXrender, pango, atk, gtk+, ah!  Compiles.

All the tests in gtk+-2.4.1/tests/.libs/ work fine, showing windows
with text, buttons with text, etc.

perl -MCPAN -e shell, install Gtk2, ah!  Installs.
When I call massrotate, it says,

WARNING **: Cannot open font file for font Bitstream Charter 16 at
+/usr/local/bin/massrotate line 99.
Segmentation fault

It was doing just segfault until I removed /usr/lib/X11/fonts/URW.
Same removal was needed while installing fontconfig-2.2.94 (and
2.2.2).  Even replacing the URW, which was a (only) symlink to
/usr/share/ghostscript/fonts, with the actual copy, didn't help then
and now.

I wonder where Gtk2 and Pango fail to load the fonts, even though
stand-alone gtk+ tests do show text captions.

-- 
Cheers,
Alexy Khrabrov :: www.setup.org :: Age Quod Agis
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux