aboutsummaryrefslogtreecommitdiff
path: root/modules/pdp_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pdp_text.c')
-rw-r--r--modules/pdp_text.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/pdp_text.c b/modules/pdp_text.c
index 24b4c3e..7840e1c 100644
--- a/modules/pdp_text.c
+++ b/modules/pdp_text.c
@@ -380,7 +380,8 @@ static void pdp_text_font(t_pdp_text *x, t_symbol *sfont )
font = imlib_load_font(sfont->s_name);
if ( !font )
{
- post( "pdp_text : could not load font : >%s<", sfont->s_name );
+ pd_error( x, "[%s] error: could not load font: '%s'",
+ class_getname(*(t_pd *)x), sfont->s_name );
return;
}
imlib_context_set_font( font );
@@ -392,8 +393,9 @@ static void pdp_text_allocate(t_pdp_text *x)
x->x_image = imlib_create_image( x->x_vwidth, x->x_vheight );
if ( x->x_image == NULL )
{
- post( "pdp_text : severe error : could not allocate image !!" );
- return;
+ pd_error( x, "[%s] error: could not allocate image!!",
+ class_getname(*(t_pd *)x) );
+ return;
}
imlib_context_set_image(x->x_image);
}
@@ -647,8 +649,8 @@ void pdp_text_setup(void)
font = imlib_load_font(DEFAULT_FONT);
if ( !font )
{
- post( "pdp_text : severe error : could not load default font : no rendering !!!" );
- post( "pdp_text : try installing Bitstream Vera (http://www.gnome.org/fonts/)" );
+ error( "[pdp_text] error: could not load default font, no text rendering!" );
+ post( "\tinstall Bitstream Vera, it's free! (http://www.gnome.org/fonts/)" );
}
imlib_context_set_font( font );
}