Pango errors?

wally_bkg wb666greene at gmail.com
Wed Aug 31 12:04:50 PDT 2011


Stefan Kost wrote:
> 
> On 08/31/11 14:45, wally bkg wrote:
>> Any idea how to fix these?  I'm getting these "randomly" a third or
>> fourth time I run my program on some systems:
>>
>> Pango-WARNING **: failed to create cairo scaled font, expect ugly
>> output. the offending font is 'DejaVu Sans Mono 18'
> 
> One thing to do is to use a colon to delimit name and size. 'DejaVu Sans
> Mono,18'.
> 
> Stefan
> 

Thanks, but I'm not clear on where I'd do this as I'm just using the default
font and size, so presumably

'DejaVu Sans Mono,18' is the default font.

All I'm doing is:

    g_assert( tover = gst_element_factory_make ("timeoverlay", "tover"));
    g_object_set (G_OBJECT (tover), "halign", "right", NULL);	// set overlay
properties
    g_object_set (G_OBJECT (tover), "valign", "top", NULL);
    g_object_set (G_OBJECT (tover), "text", "R:", NULL);
    g_object_set (G_OBJECT (tover), "ypad", 0, NULL);

    g_assert( tover1 = gst_element_factory_make ("timeoverlay", "tover1"));
    g_object_set (G_OBJECT (tover1), "halign", "right", NULL);
    g_object_set (G_OBJECT (tover1), "valign", "top", NULL);
    g_object_set (G_OBJECT (tover1), "text", "L:", NULL);
    g_object_set (G_OBJECT (tover1), "ypad", 0, NULL);

    g_assert( tover2 = gst_element_factory_make ("timeoverlay", "tover2"));
    g_object_set (G_OBJECT (tover2), "ypad", 0, NULL);
    g_object_set (G_OBJECT (tover2), "text", "  Stream:", NULL);

Is the default font system dependent?  I've never seen the issue on some
systems at all.  What would be the safest font to use?  I've never really
cared about fonts as long as its readable.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pango-errors-tp3780879p3781930.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list