[cairo-commit] cairo-ocaml/src ml_cairo_ft.c,1.9,1.10

Olivier Andrieu commit at pdx.freedesktop.org
Wed Dec 13 11:14:36 PST 2006


Committed by: oandrieu

Update of /cvs/cairo/cairo-ocaml/src
In directory kemper:/tmp/cvs-serv13339/src

Modified Files:
	ml_cairo_ft.c 
Log Message:
src/ml_cairo_ft.c: 
  fix the stubs when the FT font backend is not available
  (thx. Christoph Bauer)


Index: ml_cairo_ft.c
===================================================================
RCS file: /cvs/cairo/cairo-ocaml/src/ml_cairo_ft.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ml_cairo_ft.c	8 Nov 2006 23:42:34 -0000	1.9
+++ ml_cairo_ft.c	13 Dec 2006 19:14:32 -0000	1.10
@@ -113,23 +113,21 @@
 
 /* cairo Fontconfig/Freetype font backend */
 wML_1 (cairo_ft_font_face_create_for_pattern, FcPattern_val, Val_cairo_font_face_t)
-wML_2 (cairo_ft_font_options_substitute, cairo_font_options_t_val, FcPattern_val, Unit)
 wML_2 (cairo_ft_font_face_create_for_ft_face, FT_Face_val, Int_val, Val_cairo_font_face_t)
 wML_1 (cairo_ft_scaled_font_lock_face, cairo_scaled_font_t_val, Val_ptr)
 wML_1 (cairo_ft_scaled_font_unlock_face, cairo_scaled_font_t_val, Unit)
 
 #else
 
-Unsupported (ml_FT_Init_FreeType)
-Unsupported (ml_FT_Done_FreeType)
-Unsupported (ml_FT_New_Face)
-Unsupported (ml_FT_Done_Face)
-Unsupported (ml_FcNameParse)
-Unsupported (ml_FcNameUnparse)
-Unsupported (ml_cairo_ft_font_create_for_pattern)
-Unsupported (ml_cairo_ft_font_options_substitute)
-Unsupported (ml_cairo_ft_font_create_for_ft_face)
-Unsupported (ml_cairo_ft_scaled_font_lock_face)
-Unsupported (ml_cairo_ft_scaled_font_unlock_face)
+Cairo_Unsupported (FT_Init_FreeType, "FT backend not supported")
+Cairo_Unsupported (FT_Done_FreeType, "FT backend not supported")
+Cairo_Unsupported (FT_New_Face, "FT backend not supported")
+Cairo_Unsupported (FT_Done_Face, "FT backend not supported")
+Cairo_Unsupported (FcNameParse, "FT backend not supported")
+Cairo_Unsupported (FcNameUnparse, "FT backend not supported")
+Cairo_Unsupported (cairo_ft_font_create_for_pattern, "FT backend not supported")
+Cairo_Unsupported (cairo_ft_font_create_for_ft_face, "FT backend not supported")
+Cairo_Unsupported (cairo_ft_scaled_font_lock_face, "FT backend not supported")
+Cairo_Unsupported (cairo_ft_scaled_font_unlock_face, "FT backend not supported")
 
 #endif /* CAIRO_HAS_FT_FONT */



More information about the cairo-commit mailing list