[Fontconfig] mmaping FcInit

Patrick Lam plam at MIT.EDU
Mon Mar 21 17:01:20 EST 2005


Hi.

I've been hacking on fontconfig a bit to make it possible to mmap the 
FcInit and related data structures.  There is some discussion at

http://bugzilla.gnome.org/show_bug.cgi?id=169345

In short, I think that one would need to replace pointers with array 
indices; to do otherwise seems to be asking for trouble.  I've started a 
patch that does this; my current patch is available at

http://plam.csail.mit.edu/~plam/tmp/fontconfig-strings-to-indices.diff

I'm also willing to replace FcPatternIndex with a void * datatype that 
would be cast to ints when needed; this would avoid breaking current 
APIs but is less aesthetically pleasing.

Does this seem to be a promising approach, and is something like this 
commitable when complete?

Thanks,
pat



More information about the Fontconfig mailing list