[HarfBuzz] Units of members of hb_glyph_position_t

Behdad Esfahbod behdad at behdad.org
Tue May 28 19:03:48 UTC 2019


On Tue, May 28, 2019 at 3:02 PM Eli Zaretskii <eliz at gnu.org> wrote:

> > From: Behdad Esfahbod <behdad at behdad.org>
> > Date: Tue, 28 May 2019 14:46:45 -0400
> > Cc: "harfbuzz at lists.freedesktop.org" <harfbuzz at lists.freedesktop.org>
> >
> > You pick what value you want to represent one pixel as.  Say, you choose
> 1024.  Then if you want to render at
> > "16px" font size, you set scale to 16*1024.  That's all.
>
> And then the values of hb_glyph_position_t should be divided by 1024
> to produce pixels when using this hb_font_t object?
>

Yes.

-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20190528/212b8b22/attachment.html>


More information about the HarfBuzz mailing list