Problem loading font face using freetype and cairo
I have been using cairo quite nicely but have grown tired of the toy fonts. I am trying to load a font face into a cairo_font_face_t struct. But am having a little problem:
Compiler: warning: assignment makes pointer from integer without a cast
FT_Init_FreeType( &library );
FT_New_Face( library, "/usr/share/fonts/truetype/ttf-scriptin/SCRIPTIN.ttf", 0, &face );
myfont_face = cairo_ft_font_face_create_for_ft_face(face,0); // THIS LINE THROWING ERROR -
Any help greatly appreciated. It's possible I don't need to be using a cairo_font_face_t at all, but I think I do. Thank you.