Hello<br><br>I am using pango change the layout of some labels:<br><br><span style="font-family: courier new,monospace;">Label urlLaben = null;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Pango.FontDescription font_desc = null;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">font_desc = Pango.FontDescription.FromString ("sans 11 bold");</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">urlLabel = new Label("n/a");</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">urlLabel.ModifyFont(font_desc);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">urlLabel.SetAlignment(0.0f, 1.0f);</span><br clear="all">
<br>But when the application has been running for a short while i get a pango warning and the application dies.<br><br><blockquote>(mml:10381): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()<br><br>
(mml:10381): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='DejaVu Sans 8', text=''<br>Stacktrace:<br><br>Segmentation fault (core dumped)<br></blockquote>
<br>Why is this, and what can be done about it? The labels text are updated regularly (about once a second), can this be part of the problem?<br>-- <br>Med venlig hilsen / Kind regards<br>Søren Juul