[HarfBuzz] Harfbuzz features and layout
Behdad Esfahbod
behdad at behdad.org
Wed Jul 30 15:01:19 PDT 2014
Hi Edu,
If all you want is to render paragraph in a box, that's exactly what
PangoLayout is for.
Hope that helps,
behdad
On 14-07-30 05:58 PM, Edu García wrote:
> Thank you for both of your responses.
>
> Steven: Thank you for the article! However, I'm still a bit confused, sorry.
> According to the article, Pango is not a good fit for web browsers or word
> processors. So I'm assuming my usecase (render text in this box and split it
> in lines) falls into that category? So that means I can't use Pango either?
> Sorry if this is obvious, but I'm having a hard time finding exactly what I
> need :).
>
> Konstantin: according to Behdah "State of Text Rendering", "HarfBuzz, as an
> OpenType Layout engine, is where all the magic happens". And I also see a
> header called "hb-ot-layout.h", that I'm assuming is where the Freetype 2
> OpenType layout code moved, whatever that means, so that's where my confusion
> started.
>
> Again, thank you for your responses!
>
>
> On Thu, Jul 31, 2014 at 7:47 AM, Konstantin Ritt <ritt.ks at gmail.com
> <mailto:ritt.ks at gmail.com>> wrote:
>
> From the official site: "HarfBuzz is an OpenType
> <http://www.microsoft.com/OpenType/OTSpec/> text shaping engine."
> Shaping != layout.
>
> So quick answer would be: "No, HarfBuzz can not do layout related tasks".
>
> Konstantin
>
>
> 2014-07-31 1:35 GMT+04:00 Edu García <arcnorj at gmail.com
> <mailto:arcnorj at gmail.com>>:
>
> Thank you! What about the layout, can Harfbuzz do it?
>
> On Jul 30, 2014 9:07 PM, "Khaled Hosny" <khaledhosny at eglug.org
> <mailto:khaledhosny at eglug.org>> wrote:
>
> On Wed, Jul 30, 2014 at 01:42:42PM +1000, Edu García wrote:
> > Hi there,
> >
> > First of all, just let me say that Harfbuzz seems like an
> awesome piece of
> > engineering, and the API seems a breeze to use. I've done a very
> simple
> > example in just a few hours, and I'm very happy about that :).
> >
> > I have two (very noob, sorry) questions, tough:
> >
> > 1) I want to enable (or disable) ligatures. I've seen that when
> using a
> > font like Adobe Garamond Pro, ligatures are automatically used.
> I thought I
> > had to pass a feature to hb_shape() to do that? Also, is there
> any way of
> > enabling only some kind of ligatures, like historical ones?
>
> Some features are enabled by default, to you can disable default
> features/enable non-default features by passing appropriate
> hb_feature_t's to hb_shape_full().
>
> Regards,
> Khaled
>
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org <mailto:HarfBuzz at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
>
>
>
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
--
behdad
http://behdad.org/
More information about the HarfBuzz
mailing list