Crashes when trying to use windows fonts



I'm working on a project where I have to use windows fonts, and for some
reason when I use a redhat 7.2 based machine it crashes when it doesn't
find the fonts (normally it just picks something close and keeps running)

here is some of the code that seems to be incuring the problem:

title_label = (GtkWidget *)(gtk_object_get_data(GTK_OBJECT(window),
                           "capture_label_info"));
ocd_set_text_style(title_label, "-*-arial-bold-r-*-*-12-*-*-*-*-*-*-*",
                           255,255,255);
title_label = (GtkWidget *)(gtk_object_get_data(GTK_OBJECT(window),
                           "capture_label_video_status"));
ocd_set_text_style(title_label, "-*-arial-bold-r-*-*-12-*-*-*-*-*-*-*",
                           255,255,255);
title_label = (GtkWidget *)(gtk_object_get_data(GTK_OBJECT(window),
                           "capture_label_video_time"));
ocd_set_text_style(title_label, "-*-arial-bold-r-*-*-12-*-*-*-*-*-*-*",
                           255,255,255);


when I run this code it spits out:

Gdk-CRITICAL **: file gdkfont.c: line 318 (gdk_string_width): assertion
`font != NULL' failed.

Gdk-CRITICAL **: file gdkfont.c: line 394 (gdk_text_width_wc): assertion
`font != NULL' failed.


though I admit its possible these errors might have nothing to do with the
fonts...

Dave McGuire




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