For microsoft vs.net user, before build the cairo library, you need to create a header file "cairo-features.h", and than create a win32 dll project, add the requested source files into the project.
You can get the win32 project from there: The MSVC project of the cairo library
cairo-features.h for msvc using win32 font:
#ifndef CAIRO_FEATURES_H
#define CAIRO_FEATURES_H
#if defined(__cplusplus) && !defined(LIBCAIRO_EXPORTS)
# define CAIRO_BEGIN_DECLS extern "C" {
# define CAIRO_END_DECLS }
#else
# define CAIRO_BEGIN_DECLS
# define CAIRO_END_DECLS
#endif
#ifndef cairo_public
#ifdef LIBCAIRO_EXPORTS
#define cairo_public __declspec(dllexport)
#else
#define cairo_public __declspec(dllimport)
#endif
#endif
#define CAIRO_VERSION_MAJOR 1
#define CAIRO_VERSION_MINOR 5
#define CAIRO_VERSION_MICRO 3
#define CAIRO_VERSION_STRING "1.5.3"
#define HAVE_WINDOWS_H 1
#define CAIRO_HAS_SVG_SURFACE 1
#define CAIRO_HAS_PDF_SURFACE 1
#define CAIRO_HAS_PS_SURFACE 1
#define CAIRO_HAS_WIN32_SURFACE 1
#define CAIRO_HAS_WIN32_FONT 1
#define CAIRO_HAS_PNG_FUNCTIONS 1
#define PACKAGE_NAME "cairo"
#define PACKAGE_TARNAME "cairo"
#define PACKAGE_STRING "cairo 1.5.3"
#endif
