[HarfBuzz] x_offset and y_offset

Samiullah Khawaja sami.khawaja at gmail.com
Mon Oct 22 06:33:08 PDT 2012


As the left bearing of the glyph is added to the current pen x position as
an offset to render the glyph image. Do we have to add the x_offset instead
of adding the left bearing?

How is x_offset used during the rendering of the glyph.

Thanks.

On Mon, Oct 22, 2012 at 6:07 PM, Grigori Goronzy <greg at chown.ath.cx> wrote:

> On 10/22/2012 12:40 PM, Samiullah Khawaja wrote:
> > Is x_offset is like the left bearing difference of the glyph in
> > "freetype glyph_bitmap->left" and the y_offset is like the top bearing
> > of the glyph in "freetype glyph_bitmap->top" (upwards distance from
> > baseline)
> >
>
> In my understanding, the offsets shouldn't be interpreted like that.
> They move the glyph position, but do not influence its metrics or advance.
>
> > Are these values 16.16 fractional values or 26.6 fractional values?
> >
>
> The values are in 26.6 format.
>
> Best regards
> Grigori
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>



-- 
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/20121022/85b97490/attachment.html>


More information about the HarfBuzz mailing list