On Wed, 10 Mar 2010 03:50:17 -0500
Behdad Esfahbod beh...@behdad.org wrote:
Well, in short, all the hb_blob_t in HarfBuzz is about communicating to
harfbuzz what it can do with the memory backing the font file. There are
three different cases we are interested in:
- The memory is read-only;
On 03/05/2010 02:26 AM, mpsuz...@hiroshima-u.ac.jp wrote:
Checking the source code, I wonder if I should also check for (face_flags
FT_FACE_FLAG_EXTERNAL_STREAM) to detect whether it's an mmapped stream or the
user provided it (and hence we cannot mprotect). The docs say: Don't read
or
To guarantee the memory buffer is obtained by mmap() in FT2,
including previous releases, the most stable way would be mmap() in
FT2 client and pass the memory image to FT2.
To me, this sounds reasonable. However, you probably has special
constraints...
Werner
On Mon, 01 Mar 2010 22:29:18 -0500
Behdad Esfahbod beh...@behdad.org wrote:
On 03/01/2010 09:18 PM, mpsuz...@hiroshima-u.ac.jp wrote:
How about using
if ( face-stream-read == NULL )
instead of
if ( face-stream-base != NULL )
Yes, that's what I'm planning to do instead.
Thanks!
On Tue, 2 Mar 2010 09:30:39 +0200
Tor Lillqvist t...@iki.fi wrote:
Indeed. If you know the function calling the final
FT_Stream_EnterFrame() and exposes internal base
value to FT2 client, please let me know.
Sorry, I don't. As the enter/exit functions are called dozens of times
before
On Mon, Mar 1, 2010 at 11:30 PM, Tor Lillqvist t...@iki.fi wrote:
Sorry, I don't. As the enter/exit functions are called dozens of times
before something odd happens and the exit function isn't called (and
then later the Pango function is called), it would take quite some
time to debug...
Hi,
I noticed a problem in the Pango FreeType backend on Windows, where it
would see a FT_StreamRec with a non-NULL base field, and thus assume
it is a memory-based stream as the comment in ftsystem.h promises (and
that base points to the whole font file mapped into memory).
I did some
On 03/01/2010 09:18 PM, mpsuz...@hiroshima-u.ac.jp wrote:
How about using
if ( face-stream-read == NULL )
instead of
if ( face-stream-base != NULL )
Yes, that's what I'm planning to do instead.
Checking the source code, I wonder if I should also check for (face_flags
Indeed. If you know the function calling the final
FT_Stream_EnterFrame() and exposes internal base
value to FT2 client, please let me know.
Sorry, I don't. As the enter/exit functions are called dozens of times
before something odd happens and the exit function isn't called (and
then later