Forgot to cc list...<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">John C. Tull</b> &lt;<a href="mailto:john.tull@wildnevada.org">john.tull@wildnevada.org</a>&gt;<br>
Date: Sun, Jul 13, 2008 at 11:24 AM<br>Subject: Re: [Qgis-developer] Re: Labels in OS X<br>To: Tom Elwertowski &lt;<a href="mailto:telwertowski@comcast.net">telwertowski@comcast.net</a>&gt;<br><br><br><div class="gmail_quote">
<div class="Ih2E3d">On Sat, Jul 12, 2008 at 10:56 PM, Tom Elwertowski &lt;<a href="mailto:telwertowski@comcast.net" target="_blank">telwertowski@comcast.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>John C. Tull wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The labels show correctly in the Terminal, e.g.:<br>
Debug: Label: &quot;Fire Mountain&quot;<br>
</blockquote>
<br></div>
When the labels are displayed, is truncation always between letters or do you see partial letters?</blockquote><div><br></div></div><div>Partial letters will show. Placing labels in the bottom right makes them work, top left they disappear altogether. Variations in between those extremes, including only seeing the top half of the label, etc. My current fix is to place labels to bottom right. It is as if there is an invisible box being drawn that blocks the labels, but nothing else on the map canvas.</div>
<div class="Ih2E3d">
<div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Have you tried changing font, size, style, alignment and rotation? Is the truncation different for any of these or do you see the same partial string?</blockquote><div><br></div></div><div>Yes, as above.</div><div class="Ih2E3d">
<div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Line 399 does the display:<br>
painter-&gt;drawText ( dx, dy, text );<br>
<br>
Try another qDebug() line just before it to see if the value of &#39;text&#39; has changed. I don&#39;t anywhere it could change however.</blockquote><div><br></div></div><div>Still reporting the labels intact.</div><div class="Ih2E3d">
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
A clipping rectangle is another possible culprit but I don&#39;t see one in use. There is a drawText variant that uses a QRect rather then two ints. When I saw your image, my suspicion was that a bad clipping rect was being computed and passed to drawText.<br>


<br>
If changing the label properties doesn&#39;t produce any new oddities, the only other thing I can think of is to look at the source for drawText to see how it processes its parameters.</blockquote><div><br></div></div><div>
Thanks for all the suggestions. I hope this one can be figured out, and I appreciate your help.</div>
<div><br></div><div>John</div></div></div>