freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Rendering to a pre-allocated buffer


From: Ivan Hamer
Subject: Re: [ft] Rendering to a pre-allocated buffer
Date: Wed, 21 May 2014 11:27:03 -0400

My apologies. What I wrote in the first sentence seems to had been munged up.
When rendering a glyph, Freetype seems to allocate it's own bitmap (FT_GlyphSlot.bitmap). I would like it to use an already allocated bitmap (with given fixed size). That way, I could avoid a copy from FT_GlyphSlot.bitmap to my bitmap.
Thanks a lot, Werner.


On Wed, May 21, 2014 at 2:09 AM, Werner LEMBERG <address@hidden> wrote:

> Is it possible to render a glypa FT_Bitmap, and then copying that
> bitmap. I am trying to speed things up by removing the need for that
> extra copy.h directly onto a fixed-size buffer, as opposed to
> rendering it onto

I don't fully understand what you are writing.  If necessary, please
reformulate.

For direct rendering into an external buffer you should have a look at
Róbert Márki's demo:

  http://freetype.org/freetype2/docs/tutorial/step3.html


    Werner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]