freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Configuring for alternative build environments


From: Del Merritt
Subject: [ft-devel] Configuring for alternative build environments
Date: Tue, 27 Nov 2012 11:01:05 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1

Hello -

I'm building a Java Native Interface (JNI) into freetype.  I've read freetype-2.4.10's CUSTOMIZE and I'm poking around in ftsystem.c.  What I would like is a way to build an FT_Stream that allows me to pass in my own stream handler(s), independent of the C RTL.  These stream handlers will actually use Java's I/O - a pre-opened (i.e., no "filename" readily available) InputStream.

My questions:
  1. Has anyone already done and published something like this?  If not,
  2. Any suggestions on Best Practice?

It looks like for starters I'll be overriding a bunch of the contents of ftstdlib.h - things like "fseek" would be replaced by my own, Java-specific version that operates on the InputStream.

Thanks for any comments and suggestions,
-Del


reply via email to

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