[HarfBuzz] x_offset and y_offset

Behdad Esfahbod behdad at behdad.org
Thu Oct 25 14:57:07 PDT 2012


Do you have Unicode callbacks set up properly?  What version are you using?

On 12-10-25 02:44 PM, Samiullah Khawaja wrote:
> 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
> <mailto: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 <mailto:sami.khawaja at gmail.com>
> voice: +(92) 0321-4184324



More information about the HarfBuzz mailing list