Ok I will try the hb-view tool.<br><br>I also tried the following example suggested by you in a different thread, but it gives the same results. There are no x_offset and y_offset values in positions. This example has a font lateef.ttf.<br>
<pre><a rel="nofollow" href="https://github.com/anoek/ex-sdl-cairo-freetype-harfbuzz" target="_top">https://github.com/anoek/ex-sdl-cairo-freetype-harfbuzz</a></pre>Regards,<br>Sami<br><br><div class="gmail_quote">On Fri, Jul 13, 2012 at 5:52 PM, Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 07/13/2012 06:45 AM, Samiullah Khawaja wrote:<br>
> Hi,<br>
><br>
> Any help in this regard?<br>
<br>
</div>No. You can try to reproduce it using the hb-view tool and the same font. If<br>
that works, then the bug is in your code. If the bug exists with hb-view too,<br>
it's either a font bug, or an hb-ft glue-layer hinting / rounding issue.<br>
<span class="HOEnZb"><font color="#888888"><br>
behdad<br>
</font></span><div class="im HOEnZb"><br>
> Thanks,<br>
> Sami<br>
><br>
> On Fri, Jul 13, 2012 at 1:00 AM, Samiullah Khawaja <<a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a><br>
</div><div class="im HOEnZb">> <mailto:<a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a>>> wrote:<br>
><br>
> Hi,<br>
><br>
> glyphPos[count].x_offset and y_offset is always 0 in my case for all<br>
> glyphs, I debugged through the harfbuzz code found that the GPOS is not<br>
> getting applied on the positions in any glyph.<br>
><br>
> Regards,<br>
> Sami<br>
><br>
><br>
> On Fri, Jul 13, 2012 at 12:17 AM, Behdad Esfahbod <<a href="mailto:behdad@behdad.org">behdad@behdad.org</a><br>
</div><div class="im HOEnZb">> <mailto:<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>>> wrote:<br>
><br>
> On 07/12/2012 05:06 AM, Samiullah Khawaja wrote:<br>
> ><br>
> > // render glyph at dst_x + glyph_bitmap->left<br>
> > renderGlyph(ft_glyph, dst_x + glyph_bitmap->left);<br>
><br>
> You should also add glyphPos[count].x_offset here.<br>
> And you seem to totally ignore vertical positioning.<br>
><br>
> behdad<br>
><br>
><br>
><br>
><br>
> --<br>
> Samiullah Khawaja<br>
> Software Engineer<br>
</div><div class="im HOEnZb">> email: <a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a> <mailto:<a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a>><br>
> voice: <a href="tel:%2B%2892%29%200321-4184324" value="+923214184324">+(92) 0321-4184324</a> <tel:%2B%2892%29%200321-4184324><br>
><br>
><br>
><br>
><br>
</div><div class="im HOEnZb">> --<br>
> Samiullah Khawaja<br>
> Software Engineer<br>
</div><div class="HOEnZb"><div class="h5">> email: <a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a> <mailto:<a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a>><br>
> voice: <a href="tel:%2B%2892%29%200321-4184324" value="+923214184324">+(92) 0321-4184324</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Samiullah Khawaja<br>Software Engineer<br>email: <a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a><br>voice: +(92) 0321-4184324<br>