Attached (get-stream-info.diff) is a revised patch with
a feature to get the info about the origin of the memory
in FT_Stream object, which is inspired by recent discussion
with Behdad about mprotect() to the buffer in FT_Stream
object. Sample code (get-stream-info.c) invokes the new APIs
FT_Get_MemInfo_From_Stream() and FT_Get_Path_From_Stream()
then shows results, aslike:

  $ ./get-stream-info.exe /usr/X11R7/lib/X11/fonts/100dpi/helvR24.pcf.gz 
  memory allocator=[gzip-buff]
  pathname=[/usr/X11R7/lib/X11/fonts/100dpi/helvR24.pcf.gz]

Just a proof of concept.

Regards,
mpsuzuki

Attachment: get-stream-info.diff.lzma
Description: Binary data

Attachment: get-stream-info.c.lzma
Description: Binary data

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to