New Cairo Symbols in 1.8 and 1.6
I’ve been working on a new Cairo extension for PHP (5.2+ only, OOP and functional) that was started for the gsoc
Originally we were only going to support the lastest (1.6), but then the new 1.8 version was released and I started adding support to that as well. Then we noticed that dreadfully slow/out of date RHEL and derivitives still have 1.4 versions of Cairo floating around (yuck). So the extension will support 1.4+ However the cairo docs are incorrect in a couple of places regarding new symbols. After some header diffing here is a complete list for 1.8 and 1.6 (to make life easier for anyone else writing language wrappers)
New Symbols in 1.8
CAIRO_STATUS_FONT_TYPE_MISMATCH
CAIRO_STATUS_USER_FONT_IMMUTABLE
CAIRO_STATUS_USER_FONT_ERROR
CAIRO_STATUS_NEGATIVE_COUNT
CAIRO_STATUS_INVALID_CLUSTERS
CAIRO_STATUS_INVALID_SLANT
CAIRO_STATUS_INVALID_WEIGHT
cairo_glyph_allocate
cairo_glyph_free
CAIRO_HAS_IMAGE_SURFACE
CAIRO_HAS_USER_FONT
cairo_text_cluster_t;
cairo_text_cluster_allocate;
cairo_text_cluster_free;
cairo_text_cluster_flags_t
CAIRO_TEXT_CLUSTER_FLAG_BACKWARD
cairo_show_text_glyphs
CAIRO_FONT_TYPE_USER
cairo_scaled_font_text_to_glyphs
cairo_scaled_font_get_scale_matrix
cairo_toy_font_face_create
cairo_toy_font_face_get_family
cairo_toy_font_face_get_slant
cairo_toy_font_face_get_weight
cairo_user_font_face_create
cairo_user_font_face_set_init_func
cairo_user_font_face_set_render_glyph_func
cairo_user_font_face_set_text_to_glyphs_func
cairo_user_font_face_set_unicode_to_glyph_func
cairo_user_font_face_get_init_func
cairo_user_font_face_get_render_glyph_func
cairo_user_font_face_get_text_to_glyphs_func
cairo_user_font_face_get_unicode_to_glyph_func
cairo_user_scaled_font_init_func_t
cairo_user_scaled_font_render_glyph_func_t
cairo_user_scaled_font_text_to_glyphs_func_t
cairo_user_scaled_font_unicode_to_glyph_func_t
CAIRO_VERSION_STRINGIZE
cairo_surface_get_fallback_resolution
cairo_surface_has_show_text_glyphs
New symbols in 1.6
cairo_win32_printing_surface_create
cairo_win32_font_face_create_for_logfontw_hfont
cairo_quartz_font_face_create_for_cgfont
cairo_quartz_font_face_create_for_atsu_font_id
CAIRO_PS_LEVEL_2
CAIRO_PS_LEVEL_3
cairo_ps_level_t
cairo_ps_surface_restrict_to_level
cairo_ps_get_levels
cairo_ps_level_to_string
cairo_ps_surface_set_eps
cairo_ps_surface_get_eps
CAIRO_STATUS_TEMP_FILE_ERROR
CAIRO_STATUS_INVALID_STRIDE
cairo_path_extents
CAIRO_FONT_TYPE_QUARTZ
cairo_has_current_point
CAIRO_SURFACE_TYPE_WIN32_PRINTING
CAIRO_SURFACE_TYPE_QUARTZ_IMAGE
cairo_surface_copy_page
cairo_surface_show_page
cairo_format_stride_for_width