BaH.Cairo - Updated

BlitzMax Modules Forums/Brucey's Modules/BaH.Cairo - Updated

Finally got around to a new release of the Cairo module - (1.22)

Notes for this version :
* Cairo upgrade to 1.8.4
* Removal of fontconfig dependency on Win32 and Mac.
* Removed Stroke() call from ShowText().
* Added fill rule consts.

The biggest change is the removal of the Fontconfig dependency. This should mean there are less major issues using it on Windows and Mac. The "problem" with fontconfig is that it likes to search your system and cache all fonts. This can take a long while, the first time. Sure, it's also a great tool for fonts in general, but one must weigh up the good and the bad.
So, I've dropped it as a requirement, and implemented my own basic font loading routines, which should allow you to use a font filename without a path.

Also, the "engine" has been updated to 1.8.4, which improves speed, bug fixes, etc...

On Linux, it still uses the system-supplied Cairo/fontconfig/Pango/GTK etc., so business as usual there :-)

One other note. I've moved the download to the Maxmods GoogleCode area, as I continue the migration to there.

Enjoy!

:o)

Great ! I will try it because I have get issues with fontconfig on my previous projects.

I have an error when I tried to compile cairo module on Bmax 1.30 + vista :
glue.cpp not found

The Cairo module doesn't require glue.cpp ... ??

If you comment out/remove the line at the bottom of source.bmx, which says
Import "glue.cpp"

It should work.

No idea how that got in there... guess I need to review my release procedure... :-s

Apologies.... updated now to 1.22 - which fixes the problem.


* geeky tech comment to follow *

Seems "svn export" doesn't export only HEAD, but also any local changes - which I obviously hadn't realised at the time. So now I need to make sure when I export, that I have HEAD only.. and not any follow-up modifications. (I suppose in some way that makes sense - make the cut before continuing)...

Working perfectly !
Only one thing, the test1.pdf that come with the module is good while running the associated pdf_output_1.bmx I get an additional red line from the text to the circle red.
Is this normal ?
I don't care using pdf, was just curious ^^

Yes it works fine, Thanks !