Is it possible to use Cairo library with Unty?

Hi guys !!

We are trying to use the Cairo library into Unity because we need to be able to draw directly on texture some characters (taken from a font texture) or some primitives like lines or curves.
We have alredy download and compiled the latest Cairo version so we have the dll (for Windows) to import in our Unity project. The problem is that the dll is not recognized when imported in project. Moreover we saw that the Cairo library is included in Mono so we would be able to use it without import any external library but it doesn’t seems to work.

The only explanation could be that Unity disable the Cairo library because of some possible incompatibilities between the 2 systems.
In the other hand is also possible that we are not able to import correctly external libraries !!!

THANK YOU.

Unity is Mono 1.2.5, not 2.x, as such it does not have 2.x additions like Cairo

The DLL you used is a .NET?
If not you need Unity Pro, drop it into the Plugins folder and write a System.InteropServices based wrapper to use it (-> DLLImport etc)

if it is a .NET Assembly, ensure to build it against .NET 2.0, not 3.x