[HarfBuzz] is it possible to render the harfbuzz buffer on to something other than SDL, like terminal

Behdad Esfahbod behdad at behdad.org
Tue Aug 20 10:01:37 PDT 2013


On 13-08-20 12:52 PM, Alexander Sabourenkov wrote:
> On Tue, Aug 20, 2013 at 4:09 PM, mahavishnu
> <mahavishnu.r at gramtechnet.co.in> wrote:
>> hi,
>>         I am trying to use freetype and harfbuzz to get the bitmap information from
>> the harfbuzz buffer where the layout is been done(if i am correct).
> 
> Not quite, the harfbuzz buffer holds only information which glyphs to
> draw where.
> 
> Actual drawing is done by explicit calls to freetype with certain
> callbacks (spanners) set up.

You don't have to implement the spanner callback API, you can ask FreeType to
render glyph to bitmap directly.

-- 
behdad
http://behdad.org/



More information about the HarfBuzz mailing list