[cairo] Request: Separate FreeType and Fontconfig

Bobby Salazar bobby8934 at inbox.com
Fri Mar 6 10:58:24 PST 2009

I have no idea why these two things haven't been separated yet. After all, it's really quite easy to do. I build Cairo on Windows and use FreeType but have no need for fontconfig. So every time I download an updated version of Cairo, I hack out the fontconfig stuff. It takes about 10 minutes of time to go through and comment out every function that uses fontconfig. It's as simple as that, just comment it out and everything works flawlessly. I don't see why it hasn't been moved to a separate file by now, with it's own cairo feature #define.

I would be willing to send a patch for this, but the impression I get from this mailing list is that if the patch doesn't fix an urgent bug (as opposed to adding useful new features), then it doesn't seem to get much attention.

> -----Original Message-----
> From: britten at caris.com
> Sent: Fri, 06 Mar 2009 11:21:39 -0400
> To: cairo at cairographics.org
> Subject: [cairo] Request: Separate FreeType and Fontconfig
> Hi all,
> Would it be possible to separate the existing FreeType/Fontconfig
> dependencies into two distinct dependencies, with the goal of being
> able to use FreeType with Cairo, but not requiring Fontconfig?
> I'm trying to help a coworker get Cairo built on Windows, and have
> run into this issue.  For our own usage, we definitely need FT, and
> thus have turned on CAIRO_HAS_FT_FONT.  Unfortunately, this also
> triggers a requirement of Fontconfig, for which we haven't figured
> out how to build it on Windows (If it even can be....)
>  From some previous posts, it seems I'm not the only one that might be
> happy to see this:
> http://lists.cairographics.org/archives/cairo/2008-November/015637.html
> http://lists.cairographics.org/archives/cairo/2008-October/015466.html
> In the meantime, can anyone provide any insight as to how to best
> proceed?
>    - Try to get Fontconfig built on Windows?  (If possible?)
>    - Hack apart every version of Cairo we download, to strip the
>      Fontconfig stuff out?
>    - Other?
> Many thanks for any info, suggestions, etc!
> Ian
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth

More information about the cairo mailing list