On Fri, 2008-05-23 at 00:41 -0300, Felipe Sanches wrote:
Also, this patch depends on linking inkscape to cairo development branch (git master) which has support for userfonts. That's one of the reasons why this has not been commited to svn yet. I don't want to branch, but I will do it if there's no other option. I would rather prefer to have --enable-svgfonts option in ./configure Can anybody help me with that? I have never done this kind of thing.
Felipe,
It is probably better to have it do something that detects the Cairo version. If I remember right, Carl always keeps it a version ahead for such detection.
You can do something like this:
PKG_CHECK_MODULES(CAIRO, cairo >= 1.xx, cairohead=yes, cairohead=no)
That'll check the version and then you can set a variable that'll get passed to the codebase like:
if test "x$cairohead" = "xyes"; then AC_DEFINE(ENABLE_SVG_FONTS, 1, [SVG Fonts should be used]) fi
And that'll be put in config.h so that you can test for it in your code.
--Ted