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

fonts messed up after dist-upgrade



Hi debian-user!

I'd like to report a bug but I'm unsure against which package so I'm
redirected here. A solution would be great, too, of course. Is it
likely that this problem  will resolve through dist-upgrading (soon)?

I'm using testing with some unstable packages and apt pinning:

bernhard@b:/etc/apt$ cat preferences 
Package: *
Pin: release a=stable
Pin-Priority: 650

Package: *
Pin: release a=testing
Pin-Priority: 700

Package: *
Pin: release a=unstable
Pin Priority: 600


Bernhard

PS: My post to news://linux.debian.user didn't make it to the mailing
list so now I post it to the mailing list. Sorry that it will appear
twice in the newsgroup.

-------- Original Message --------
Subject: fonts messed up after dist-upgrade
Date: Mon, 05 May 2003 13:22:56 +0200
From: Bernhard Kuemel <darsie@gmx.at>
Reply-To: bernhard@rainbow.bksys.at
Newsgroups: linux.debian.user

Hi!

I know, this has been mentioned before, but I still could not resolve
it after several frustrating days. The problem is mostly that freeciv
loads a wrong font (http://bksys.at/bernhard/fcscreenshots.html) but
also with Netscape displaying a smaller font.

Thomas Krennwallner wrote:
> Accourding to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=141332
> the order of the search paths for fonts have changed in
> /etc/X11/fs/config.
> 
> I changed following line:
> 
> catalogue = /usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/CID/,/usr/lib/X11/fonts/Speedo/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/cyrillic/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fonts/75dpi/
> 
> to
> 
> catalogue = /usr/lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fonts/cyrillic/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/Speedo/,/usr/lib/X11/fonts/CID/,/usr/lib/X11/fonts/Type1/
> 
> and all worked as expected.

I tried both settings, turning off xfs and in /etc/X11/XF86Config-4
mine and the settings of my fried who had not dist-upgraded her
notebook:

---------------------------------------------------------------------
Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/Type1"
	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"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

#Section "Files"
#        FontPath        "unix/:7100"                    # local font
server
#        # if the local font server has problems, we can fall back on
these
#        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"
#        FontPath        "/usr/lib/X11/fonts/Speedo"
#        FontPath        "/usr/lib/X11/fonts/100dpi"
#        FontPath        "/usr/lib/X11/fonts/75dpi"
#EndSection
---------------------------------------------------------------------

'strace client/civclient >x 2>&1' reveals that 'sumdumgo.pfb' is the
weird font (with some characters messed up furter (aecbf)).

bernhard@b:~/src/freeciv-1.14.0$ grep ttf x
read(5, "\"Times_New_Roman_Bold.ttf\" 0 \"Ti"..., 4096) = 4096
read(5, "\"Times_New_Roman_Bold.ttf\" 0 \"Ti"..., 4096) = 4096
open("/usr/share/fonts/truetype/Verdana.ttf", O_RDONLY) = 5
open("/usr/share/fonts/truetype/Andale_Mono.ttf", O_RDONLY) = 5

bernhard@b:~/src/freeciv-1.14.0$ grep pfb x
read(5, "\"cartwrig.pfb\" 0 \"CartWright:sty"..., 4096) = 4096
read(5, "\"p052024l.pfb\" 0 \"URW Palladio L"..., 4096) = 4096
open("/usr/X11R6/lib/X11/fonts/Type1/bu______.pfb", O_RDONLY) = 5
open("/usr/X11R6/lib/X11/fonts/Type1/spooky.pfb", O_RDONLY) = 5
open("/usr/X11R6/lib/X11/fonts/Type1/sumdumgo.pfb", O_RDONLY) = 5

However, I failed to track how this font gets loaded or how to fix the
problem.

--------------------- freeciv-1.14.0/client/gui-gtk-2.0/gui_main.c
-----------------
  main_font = pango_font_description_from_string("Sans Bold 13");
  city_productions_font = pango_font_description_from_string("Serif
11");

/* printf added by Bernhard Kuemel (me!) for debugging */
  printf("main_font: family_name=\"%s\", PangoStyle=%d,
PangoVariant=%d, PangoWeight=%d, PangoStretch=%d\n",
         pango_font_description_get_family(main_font),
         pango_font_description_get_style(main_font),
         pango_font_description_get_variant(main_font),
         pango_font_description_get_weight(main_font),
         pango_font_description_get_stretch(main_font));
  printf("city_production_font: family_name=\"%s\", PangoStyle=%d,
PangoVariant=%d, PangoWeight=%d, PangoStretch=%d\n",
         pango_font_description_get_family(city_productions_font),
         pango_font_description_get_style(city_productions_font),
         pango_font_description_get_variant(city_productions_font),
         pango_font_description_get_weight(city_productions_font),
         pango_font_description_get_stretch(city_productions_font));
------------------------------------------------------------------------

--------------------- client/gui-gtk-2.0/graphics.c -----------------
  layout = pango_layout_new(gdk_pango_context_get());
  pango_layout_set_font_description(layout, main_font);
[...]
/* prints "'Cause civilization should be free!" */
  pango_layout_set_text(layout, freeciv_motto(), -1);
[...]
/* prints "Version" */
  pango_layout_set_text(layout, word_version(), -1);
---------------------------------------------------------------------

My printf s are at the very end of the output (concurrent output of
printf inbetween the strace dump fixed manually):

write(1, "main_font: family_name=\"Sans\", P"..., 198) = 198
main_font: family_name="Sans", PangoStyle=0, PangoVariant=0,
PangoWeight=700, PangoStretch=4
city_production_font: family_name="Serif", PangoStyle=0,
PangoVariant=0, PangoWeight=400, PangoStretch=4
munmap(0x4001f000, 4096)                = 0
exit_group(0)                           = ?

Doesn't appear to be much help.


Thanks for help, Bernhard

-- 
Low end Serverhousing ab 25 e inkl. 1x 11 e/GB, etc.: http://bksys.at



Reply to: