diff options
-rw-r--r-- | src/cairo-misc.c | 2 | ||||
-rw-r--r-- | src/cairo.h | 4 | ||||
-rwxr-xr-x | src/cairoint.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c index a2250ffb..b85d98f5 100644 --- a/src/cairo-misc.c +++ b/src/cairo-misc.c @@ -101,6 +101,8 @@ cairo_status_to_string (cairo_status_t status) return "error creating or writing to a temporary file"; case CAIRO_STATUS_INVALID_STRIDE: return "invalid value for stride"; + case CAIRO_STATUS_FONT_TYPE_MISMATCH: + return "the font type is not appropriate for the operation"; } return "<unknown error status>"; diff --git a/src/cairo.h b/src/cairo.h index 42eb0272..4ac8f32c 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -203,6 +203,7 @@ typedef struct _cairo_user_data_key { * @CAIRO_STATUS_CLIP_NOT_REPRESENTABLE: clip region not representable in desired format (Since 1.4) * @CAIRO_STATUS_TEMP_FILE_ERROR: error creating or writing to a temporary file (Since 1.6) * @CAIRO_STATUS_INVALID_STRIDE: invalid value for stride (Since 1.6) + * @CAIRO_STATUS_FONT_TYPE_MISMATCH: the font type is not appropriate for the operation (Since 1.8) * * #cairo_status_t is used to indicate errors that can occur when * using Cairo. In some cases it is returned directly by functions. @@ -237,7 +238,8 @@ typedef enum _cairo_status { CAIRO_STATUS_INVALID_INDEX, CAIRO_STATUS_CLIP_NOT_REPRESENTABLE, CAIRO_STATUS_TEMP_FILE_ERROR, - CAIRO_STATUS_INVALID_STRIDE + CAIRO_STATUS_INVALID_STRIDE, + CAIRO_STATUS_FONT_TYPE_MISMATCH /* after adding a new error: update CAIRO_STATUS_LAST_STATUS in cairoint.h */ } cairo_status_t; diff --git a/src/cairoint.h b/src/cairoint.h index cb45bdff..3ebf8da1 100755 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -110,7 +110,7 @@ _cairo_win32_tmpfile (void); * a bit of a pain, but it should be easy to always catch as long as * one adds a new test case to test a trigger of the new status value. */ -#define CAIRO_STATUS_LAST_STATUS CAIRO_STATUS_INVALID_STRIDE +#define CAIRO_STATUS_LAST_STATUS CAIRO_STATUS_FONT_TYPE_MISMATCH /* Size in bytes of buffer to use off the stack per functions. |