Figured it out, Previously i was confused with the x_offset and y_offset always zero. But then found that it is something that is added after the bearings (Had to get this info by debugging the harfbuzz code all the way down to the position formats and x_offset and y_offset calculation).<div>
<br></div><div>My text rendering is good now. But for some fonts the NSM are not detected and their advance is not zero. For example the Traditional Arabic font in Windows. </div><div><br></div><div>Another thing that I have a font that has GDEF table missing (I found this after debugging through harfbuzz code), due to this harfbuzz does not do substition, any hints?<br>
<br><div class="gmail_quote">On Fri, Oct 26, 2012 at 12:47 AM, 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"><br>
<br>
On 12-10-25 12:47 PM, Behdad Esfahbod wrote:<br>
>> > Are these values 16.16 fractional values or 26.6 fractional values?<br>
> Depends on what you set in hb_font_set_scale(). Whatever value you set there<br>
> will represent on em-square. Up to you to interpret what the number means.<br>
<br>
</div>Though, for hb-ft, they mean 26.6 indeed.<br>
<span class="HOEnZb"><font color="#888888"><br>
behdad<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <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>
</div>