[Fontconfig] mmaping FcInit
Owen Taylor
otaylor at redhat.com
Sat Mar 26 08:25:32 EST 2005
On Fri, 2005-03-25 at 01:53 -0500, Patrick Lam wrote:
> BTW, Owen's suggested struct:
> struct FcPattern {
> int refcount;
> FcPatternStorage storage; /* dynamic, static */
>
> union {
> FcPatternDynamic *dynamic;
> FcPatternStatic *static;
> } u;
> };
>
> still seems to be a struct, and thus requiring mallocness and a pointer.
The point of my suggestion is that we need a single *public* structure
for:
- Patterns retrieved from the database of fonts on disk
- Patterns created on the fly through the FcPattern API
But that public structure can be small, lightweight, and created on
the fly.
Regards,
Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050325/46336fda/attachment.pgp
More information about the Fontconfig
mailing list