[HarfBuzz] x_offset and y_offset

Samiullah Khawaja sami.khawaja at gmail.com
Thu Oct 25 14:44:57 PDT 2012


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).

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.

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?

On Fri, Oct 26, 2012 at 12:47 AM, Behdad Esfahbod <behdad at behdad.org> wrote:

>
>
> On 12-10-25 12:47 PM, Behdad Esfahbod wrote:
> >> > Are these values 16.16 fractional values or 26.6 fractional values?
> > Depends on what you set in hb_font_set_scale().  Whatever value you set
> there
> > will represent on em-square.  Up to you to interpret what the number
> means.
>
> Though, for hb-ft, they mean 26.6 indeed.
>
> behdad
>



-- 
Samiullah Khawaja
Software Engineer
email: sami.khawaja at gmail.com
voice: +(92) 0321-4184324
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20121026/c79ab148/attachment.html>


More information about the HarfBuzz mailing list