font problems after upgrade to Mandrake 8.0



I had gtk 1.3.4 and friends working just fine under Mandrake 7.1.  Then I
made the mistake of upgrading to 8.0.  Now my scripts and the various gtk+
examples I've tried all segfault after emitting the following warning:

    ** WARNING **: Cannot load font for XLFD '-mdk-helvetica-medium-r-normal--10-100-75-75-p-60-iso8859-6

Obviously, something about the upgrade screwed the pooch on my fonts, but
I have no idea what happened or how to correct it.  Xlsfonts shows the above
as a font that exists:

    % xlsfonts | egrep -e -mdk-helvetica-medium-r-normal--10-100-75 -75-p-60-iso8859-6
    -mdk-helvetica-medium-r-normal--10-100-75-75-p-60-iso8859-6

but xfd can't do anything with it:

    % xfd -fn -mdk-helvetica-medium-r-normal--10-100-75-75-p-60-iso-8859-6
    Warning: Cannot convert string "-mdk-helvetica-medium-r-normal--10-100-75-75-p-60-iso-8859-6" to type FontStruct
    xfd:  no font to display

(I don't think this is actually a gtk problem, but a Mandrake problem.
Still, it's effectively halting any work I can do with gtk 1.3.4, so I
thought I'd ask here.  I am also pursuing the problem in the Mandrake/Linux
area.) 

Here's a gdb traceback from .../examples/treemodel/treemodel:

    (gdb) bt
    #0  0x40293a77 in pango_x_make_font_struct (font=0x8064598, info=0x80deb98)
	at pangox.c:224
    #1  0x40295804 in pango_x_get_per_char (font=0x8064598, subfont=0x80deb98, 
	char_index=1) at pangox.c:234
    #2  0x4029534b in pango_x_has_glyph (font=0x8064598, glyph=589825)
	at pangox.c:1197
    #3  0x4057e485 in find_char (cache=0x80ddbc0, font=0x8064598, wc=1, 
	input=0xbfffdca0 "\001=\r\b[%:@¸Üÿ¿") at basic-x.c:220
    #4  0x4057ebdc in basic_engine_get_coverage (font=0x8064598, 
	lang=0x80d28f0 "C") at basic-x.c:466
    #5  0x40299081 in pango_x_font_entry_get_coverage (entry=0x8060e38, 
	font=0x8064598, lang=0x80d28f0 "C") at pangox-fontmap.c:1400
    #6  0x402957a3 in pango_x_font_get_coverage (font=0x8064598, 
	lang=0x80d28f0 "C") at pangox.c:1345
    #7  0x4039141c in pango_font_get_coverage (font=0x8064598, lang=0x80d28f0 "C")
	at fonts.c:458
    #8  0x40395887 in load_font (context=0x80d2860, lang=0x80d28f0 "C", 
	desc=0xbfffde70, current_fonts=0xbfffde30, current_coverages=0xbfffddf0, 
	n_families=0xbfffddc4) at pango-context.c:781
    #9  0x40395d04 in add_engines (context=0x80d2860, text=0x80d2a20 "Fern", 
	start_index=0, length=4, attrs=0x80d2a30, cached_iter=0x80d2a40, 
	n_chars=4, shape_engines=0x80d3ad8, lang_engines=0x80d3af0, 
	fonts=0x80d3b08, extra_attr_lists=0x80d3b20) at pango-context.c:960
    #10 0x40395322 in pango_itemize (context=0x80d2860, text=0x80d2a20 "Fern", 
	start_index=0, length=4, attrs=0x80d2a30, cached_iter=0x80d2a40)
	at pango-context.c:581
    #11 0x4039a94c in pango_layout_check_lines (layout=0x80d29c0)
	at pango-layout.c:2764
    #12 0x40399412 in pango_layout_get_extents_internal (layout=0x80d29c0, 
	ink_rect=0x0, logical_rect=0xbfffe0b0, line_extents=0x0)
	at pango-layout.c:1843
    #13 0x403996a8 in pango_layout_get_extents (layout=0x80d29c0, ink_rect=0x0, 
	logical_rect=0xbfffe0b0) at pango-layout.c:1967
    #14 0x4039972c in pango_layout_get_pixel_extents (layout=0x80d29c0, 
	ink_rect=0x0, logical_rect=0xbfffe0b0) at pango-layout.c:1991
    #15 0x4006f61e in gtk_cell_renderer_text_get_size (cell=0x80cc380, 
	widget=0x80c9c58, cell_area=0x0, x_offset=0x0, y_offset=0x0, 
	width=0xbfffe144, height=0xbfffe148) at gtkcellrenderertext.c:1065
    #16 0x4006d642 in gtk_cell_renderer_get_size (cell=0x80cc380, 
	widget=0x80c9c58, cell_area=0x0, x_offset=0x0, y_offset=0x0, 
	width=0xbfffe144, height=0xbfffe148) at gtkcellrenderer.c:263
    #17 0x40182236 in gtk_tree_view_calc_size (tree_view=0x80c9c58, 
	tree=0x80d1648, iter=0xbfffe1a0, depth=1) at gtktreeview.c:4589
    #18 0x40182667 in gtk_tree_view_check_dirty (tree_view=0x80c9c58)
	at gtktreeview.c:4763
    #19 0x4017bfc4 in gtk_tree_view_size_allocate (widget=0x80c9c58, 
	allocation=0xbfffe7d0) at gtktreeview.c:1042
    #20 0x403d1de9 in g_cclosure_marshal_VOID__POINTER (closure=0x8059d60, 
	return_value=0x0, n_param_values=2, param_values=0xbfffe540, 
	invocation_hint=0xbfffe440, marshal_data=0x4017bf20) at gmarshal.c:556
    #21 0x403be7fa in g_type_class_meta_marshal (closure=0x8059d60, 
	return_value=0x0, n_param_values=2, param_values=0xbfffe540, 
	invocation_hint=0xbfffe440, marshal_data=0x68) at gclosure.c:513
    #22 0x403be3a3 in g_closure_invoke (closure=0x8059d60, return_value=0x0, 
	n_param_values=2, param_values=0xbfffe540, invocation_hint=0xbfffe440)
	at gclosure.c:436
    #23 0x403cff70 in signal_emit_R (node=0x8059da0, detail=0, instance=0x80c9c58, 
	emission_return=0x0, instance_and_params=0xbfffe540) at gsignal.c:1943
    #24 0x403ced42 in g_signal_emit_valist (instance=0x80c9c58, signal_id=11, 
	detail=0, var_args=0xbfffe7cc) at gsignal.c:1783
    #25 0x4011aa3f in gtk_signal_emit (object=0x80c9c58, signal_id=11)
	at gtksignal.c:444
    #26 0x401958f0 in gtk_widget_size_allocate (widget=0x80c9c58, 
	allocation=0xbfffe830) at gtkwidget.c:2236
    #27 0x40113255 in gtk_scrolled_window_size_allocate (widget=0x8060ac8, 
	allocation=0xbfffee10) at gtkscrolledwindow.c:827
    #28 0x403d1de9 in g_cclosure_marshal_VOID__POINTER (closure=0x8059d60, 
	return_value=0x0, n_param_values=2, param_values=0xbfffeb80, 
	invocation_hint=0xbfffea80, marshal_data=0x40113080) at gmarshal.c:556
    #29 0x403be7fa in g_type_class_meta_marshal (closure=0x8059d60, 
	return_value=0x0, n_param_values=2, param_values=0xbfffeb80, 
	invocation_hint=0xbfffea80, marshal_data=0x68) at gclosure.c:513
    #30 0x403be3a3 in g_closure_invoke (closure=0x8059d60, return_value=0x0, 
	n_param_values=2, param_values=0xbfffeb80, invocation_hint=0xbfffea80)
	at gclosure.c:436
    #31 0x403cff70 in signal_emit_R (node=0x8059da0, detail=0, instance=0x8060ac8, 
	emission_return=0x0, instance_and_params=0xbfffeb80) at gsignal.c:1943
    #32 0x403ced42 in g_signal_emit_valist (instance=0x8060ac8, signal_id=11, 
	detail=0, var_args=0xbfffee0c) at gsignal.c:1783
    #33 0x4011aa3f in gtk_signal_emit (object=0x8060ac8, signal_id=11)
	at gtksignal.c:444
    #34 0x401958f0 in gtk_widget_size_allocate (widget=0x8060ac8, 
	allocation=0xbfffee50) at gtkwidget.c:2236
    #35 0x401a1011 in gtk_window_size_allocate (widget=0x805f290, 
	allocation=0xbffff420) at gtkwindow.c:2015
    #36 0x403d1de9 in g_cclosure_marshal_VOID__POINTER (closure=0x8059d60, 
	return_value=0x0, n_param_values=2, param_values=0xbffff190, 
	invocation_hint=0xbffff090, marshal_data=0x401a0e90) at gmarshal.c:556
    #37 0x403be7fa in g_type_class_meta_marshal (closure=0x8059d60, 
	return_value=0x0, n_param_values=2, param_values=0xbffff190, 
	invocation_hint=0xbffff090, marshal_data=0x68) at gclosure.c:513
    #38 0x403be3a3 in g_closure_invoke (closure=0x8059d60, return_value=0x0, 
	n_param_values=2, param_values=0xbffff190, invocation_hint=0xbffff090)
	at gclosure.c:436
    #39 0x403cff70 in signal_emit_R (node=0x8059da0, detail=0, instance=0x805f290, 
	emission_return=0x0, instance_and_params=0xbffff190) at gsignal.c:1943
    #40 0x403ced42 in g_signal_emit_valist (instance=0x805f290, signal_id=11, 
	detail=0, var_args=0xbffff41c) at gsignal.c:1783
    #41 0x4011aa3f in gtk_signal_emit (object=0x805f290, signal_id=11)
	at gtksignal.c:444
    #42 0x401958f0 in gtk_widget_size_allocate (widget=0x805f290, 
	allocation=0xbffff4c0) at gtkwidget.c:2236
    #43 0x401a0415 in gtk_window_show (widget=0x805f290) at gtkwindow.c:1700
    #44 0x403d12c1 in g_cclosure_marshal_VOID__VOID (closure=0x8059408, 
	return_value=0x0, n_param_values=1, param_values=0xbffff800, 
	invocation_hint=0xbffff700, marshal_data=0x401a02d0) at gmarshal.c:32
    #45 0x403be7fa in g_type_class_meta_marshal (closure=0x8059408, 
	return_value=0x0, n_param_values=1, param_values=0xbffff800, 
	invocation_hint=0xbffff700, marshal_data=0x44) at gclosure.c:513
    #46 0x403be3a3 in g_closure_invoke (closure=0x8059408, return_value=0x0, 
	n_param_values=1, param_values=0xbffff800, invocation_hint=0xbffff700)
	at gclosure.c:436
    #47 0x403cff70 in signal_emit_R (node=0x8059420, detail=0, instance=0x805f290, 
	emission_return=0x0, instance_and_params=0xbffff800) at gsignal.c:1943
    #48 0x403ced42 in g_signal_emit_valist (instance=0x805f290, signal_id=4, 
	detail=0, var_args=0xbffffa88) at gsignal.c:1783
    #49 0x4011aa3f in gtk_signal_emit (object=0x805f290, signal_id=4)
	at gtksignal.c:444
    #50 0x40194266 in gtk_widget_show (widget=0x805f290) at gtkwidget.c:1558
    #51 0x40090fcc in gtk_container_show_all (widget=0x805f290)
	at gtkcontainer.c:2145
    #52 0x40194870 in gtk_widget_show_all (widget=0x805f290) at gtkwidget.c:1704
    #53 0x08049216 in main (argc=1, argv=0xbffffb9c) at treemodel.c:107
    #54 0x404600de in __libc_start_main () from /lib/libc.so.6

Any suggestions?

Thx,

-- 
Skip Montanaro (skip pobox com)
(847)971-7098




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