freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] [FYI] Re: Getting pathname from FT_Face (patch for future dis


From: mpsuzuki
Subject: [ft-devel] [FYI] Re: Getting pathname from FT_Face (patch for future discussion)
Date: Thu, 11 Mar 2010 16:47:46 +0900

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


reply via email to

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