<div dir="ltr">Hi Robert,<div>The way the PangoLayout is created and cached (up to 6 different cached layouts for one actor cached based on width) makes it impossible to grab the actual layout used to render the text using clutter_text_get_layout().  I must change clutter_text_create_layout_no_cache() to get the spacing set properly on all the cached versions.  I'm going to subclass clutter-text and make minimal changes to the actual clutter code so upgrading will be easier.</div>
<div><br></div><div>From clutter-text.c:</div><div><div>/* We need at least three cached layouts to run the allocation without</div><div> * regenerating a new layout. First the layout will be generated at</div><div> * full width to get the preferred width, then it will be generated at</div>
<div> * the preferred width to get the preferred height and then it might</div><div> * be regenerated at a different width to get the height for the</div><div> * actual allocated width</div><div> *</div><div> * since we might get multiple queries from layout managers doing a</div>
<div> * double-pass allocations, like tabular ones, we should use 6 slots</div><div> */</div></div><div><br></div><div><br></div><div>Reza</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 3:52 PM, Robert Bragg <span dir="ltr"><<a href="mailto:robert@sixbynine.org" target="_blank">robert@sixbynine.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The Cogl Pango renderer doesn't know about lines; it just gets told to<br>
draw glyphs and rectangles at a given position, so I can't think of<br>
anything at the Cogl level that could be affecting this.<br>
<br>
--<br>
Regards,<br>
Robert<br>
<div><div class="h5"><br>
On Wed, Jun 25, 2014 at 2:32 AM, Reza Ghassemi <<a href="mailto:reza.robin1@gmail.com">reza.robin1@gmail.com</a>> wrote:<br>
> There is function in pango to set the vertical line spacing,<br>
> pango_layout_set_spacing (), but it doesn't seem to work when used in<br>
> conjunction with a ClutterText object. Is it supposed to work?  Is there<br>
> another (simple) way to adjust the vertical line spacing?<br>
><br>
> Reza<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Cogl mailing list<br>
> <a href="mailto:Cogl@lists.freedesktop.org">Cogl@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/cogl" target="_blank">http://lists.freedesktop.org/mailman/listinfo/cogl</a><br>
><br>
</blockquote></div><br></div>