# Legacy Constants

These constants are aliases for enum attributes in newer versions of Pycairo. They might still be useful if you need to support Pycairo versions older than 1.13.

`cairo.``ANTIALIAS_DEFAULT`

  See `Antialias.DEFAULT`

`cairo.``ANTIALIAS_NONE`

  See `Antialias.NONE`

`cairo.``ANTIALIAS_GRAY`

  See `Antialias.GRAY`

`cairo.``ANTIALIAS_SUBPIXEL`

  See `Antialias.SUBPIXEL`

`cairo.``ANTIALIAS_FAST`

  See `Antialias.FAST`

  New in version 1.12.0.

`cairo.``ANTIALIAS_GOOD`

  See `Antialias.GOOD`

  New in version 1.12.0.

`cairo.``ANTIALIAS_BEST`

  See `Antialias.BEST`

  New in version 1.12.0.

`cairo.``CONTENT_COLOR`

  See `Content.COLOR`

`cairo.``CONTENT_ALPHA`

  See `Content.ALPHA`

`cairo.``CONTENT_COLOR_ALPHA`

  See `Content.COLOR_ALPHA`

`cairo.``EXTEND_NONE`

  See `Extend.NONE`

`cairo.``EXTEND_REPEAT`

  See `Extend.REPEAT`

`cairo.``EXTEND_REFLECT`

  See `Extend.REFLECT`

`cairo.``EXTEND_PAD`

  See `Extend.PAD`

`cairo.``FILL_RULE_WINDING`

  See `FillRule.WINDING`

`cairo.``FILL_RULE_EVEN_ODD`

  See `FillRule.EVEN_ODD`

`cairo.``FILTER_FAST`

  See `Filter.FAST`

`cairo.``FILTER_GOOD`

  See `Filter.GOOD`

`cairo.``FILTER_BEST`

  See `Filter.BEST`

`cairo.``FILTER_NEAREST`

  See `Filter.NEAREST`

`cairo.``FILTER_BILINEAR`

  See `Filter.BILINEAR`

`cairo.``FILTER_GAUSSIAN`

  See `Filter.GAUSSIAN`

`cairo.``FONT_SLANT_NORMAL`

  See `FontSlant.NORMAL`

`cairo.``FONT_SLANT_ITALIC`

  See `FontSlant.ITALIC`

`cairo.``FONT_SLANT_OBLIQUE`

  See `FontSlant.OBLIQUE`

`cairo.``FONT_WEIGHT_NORMAL`

  See `FontWeight.NORMAL`

`cairo.``FONT_WEIGHT_BOLD`

  See `FontWeight.BOLD`

`cairo.``FORMAT_INVALID`

  See `Format.INVALID`

  New in version 1.12.0.

`cairo.``FORMAT_ARGB32`

  See `Format.ARGB32`

`cairo.``FORMAT_RGB24`

  See `Format.RGB24`

`cairo.``FORMAT_A8`

  See `Format.A8`

`cairo.``FORMAT_A1`

  See `Format.A1`

`cairo.``FORMAT_RGB16_565`

  See `Format.RGB16_565`

`cairo.``FORMAT_RGB30`

  See `Format.RGB30`

  New in version 1.12.0.

`cairo.``HINT_METRICS_DEFAULT`

  See `HintMetrics.DEFAULT`

`cairo.``HINT_METRICS_OFF`

  See `HintMetrics.OFF`

`cairo.``HINT_METRICS_ON`

  See `HintMetrics.ON`

`cairo.``HINT_STYLE_DEFAULT`

  See `HintStyle.DEFAULT`

`cairo.``HINT_STYLE_NONE`

  See `HintStyle.NONE`

`cairo.``HINT_STYLE_SLIGHT`

  See `HintStyle.SLIGHT`

`cairo.``HINT_STYLE_MEDIUM`

  See `HintStyle.MEDIUM`

`cairo.``HINT_STYLE_FULL`

  See `HintStyle.FULL`

`cairo.``LINE_CAP_BUTT`

  See `LineCap.BUTT`

`cairo.``LINE_CAP_ROUND`

  See `LineCap.ROUND`

`cairo.``LINE_CAP_SQUARE`

  See `LineCap.SQUARE`

`cairo.``LINE_JOIN_MITER`

  See `LineJoin.MITER`

`cairo.``LINE_JOIN_ROUND`

  See `LineJoin.ROUND`

`cairo.``LINE_JOIN_BEVEL`

  See `LineJoin.BEVEL`

`cairo.``OPERATOR_CLEAR`

  See `Operator.CLEAR`

`cairo.``OPERATOR_SOURCE`

  See `Operator.SOURCE`

`cairo.``OPERATOR_OVER`

  See `Operator.OVER`

`cairo.``OPERATOR_IN`

  See `Operator.IN`

`cairo.``OPERATOR_OUT`

  See `Operator.OUT`

`cairo.``OPERATOR_ATOP`

  See `Operator.ATOP`

`cairo.``OPERATOR_DEST`

  See `Operator.DEST`

`cairo.``OPERATOR_DEST_OVER`

  See `Operator.DEST_OVER`

`cairo.``OPERATOR_DEST_IN`

  See `Operator.DEST_IN`

`cairo.``OPERATOR_DEST_OUT`

  See `Operator.DEST_OUT`

`cairo.``OPERATOR_DEST_ATOP`

  See `Operator.DEST_ATOP`

`cairo.``OPERATOR_XOR`

  See `Operator.XOR`

`cairo.``OPERATOR_ADD`

  See `Operator.ADD`

`cairo.``OPERATOR_SATURATE`

  See `Operator.SATURATE`

`cairo.``OPERATOR_MULTIPLY`

  See `Operator.MULTIPLY`

  New in version 1.12.0.

`cairo.``OPERATOR_SCREEN`

  See `Operator.SCREEN`

  New in version 1.12.0.

`cairo.``OPERATOR_OVERLAY`

  See `Operator.OVERLAY`

  New in version 1.12.0.

`cairo.``OPERATOR_DARKEN`

  See `Operator.DARKEN`

  New in version 1.12.0.

`cairo.``OPERATOR_LIGHTEN`

  See `Operator.LIGHTEN`

  New in version 1.12.0.

`cairo.``OPERATOR_COLOR_DODGE`

  See `Operator.COLOR_DODGE`

  New in version 1.12.0.

`cairo.``OPERATOR_COLOR_BURN`

  See `Operator.COLOR_BURN`

  New in version 1.12.0.

`cairo.``OPERATOR_HARD_LIGHT`

  See `Operator.HARD_LIGHT`

  New in version 1.12.0.

`cairo.``OPERATOR_SOFT_LIGHT`

  See `Operator.SOFT_LIGHT`

  New in version 1.12.0.

`cairo.``OPERATOR_DIFFERENCE`

  See `Operator.DIFFERENCE`

  New in version 1.12.0.

`cairo.``OPERATOR_EXCLUSION`

  See `Operator.EXCLUSION`

  New in version 1.12.0.

`cairo.``OPERATOR_HSL_HUE`

  See `Operator.HSL_HUE`

  New in version 1.12.0.

`cairo.``OPERATOR_HSL_SATURATION`

  See `Operator.HSL_SATURATION`

  New in version 1.12.0.

`cairo.``OPERATOR_HSL_COLOR`

  See `Operator.HSL_COLOR`

  New in version 1.12.0.

`cairo.``OPERATOR_HSL_LUMINOSITY`

  See `Operator.HSL_LUMINOSITY`

  New in version 1.12.0.

`cairo.``PATH_MOVE_TO`

  See `PathDataType.MOVE_TO`

`cairo.``PATH_LINE_TO`

  See `PathDataType.LINE_TO`

`cairo.``PATH_CURVE_TO`

  See `PathDataType.CURVE_TO`

`cairo.``PATH_CLOSE_PATH`

  See `PathDataType.CLOSE_PATH`

`cairo.``PS_LEVEL_2`

  See `PSLevel.LEVEL_2`

`cairo.``PS_LEVEL_3`

  See `PSLevel.LEVEL_3`

`cairo.``PDF_VERSION_1_4`

  See `PDFVersion.VERSION_1_4`

  New in version 1.12.0.

`cairo.``PDF_VERSION_1_5`

  See `PDFVersion.VERSION_1_5`

  New in version 1.12.0.

`cairo.``SVG_VERSION_1_1`

  See `SVGVersion.VERSION_1_1`

  New in version 1.12.0.

`cairo.``SVG_VERSION_1_2`

  See `SVGVersion.VERSION_1_2`

  New in version 1.12.0.

`cairo.``SUBPIXEL_ORDER_DEFAULT`

  See `SubpixelOrder.DEFAULT`

`cairo.``SUBPIXEL_ORDER_RGB`

  See `SubpixelOrder.RGB`

`cairo.``SUBPIXEL_ORDER_BGR`

  See `SubpixelOrder.BGR`

`cairo.``SUBPIXEL_ORDER_VRGB`

  See `SubpixelOrder.VRGB`

`cairo.``SUBPIXEL_ORDER_VBGR`

  See `SubpixelOrder.VBGR`

`cairo.``REGION_OVERLAP_IN`

  See `RegionOverlap.IN`

  New in version 1.11.

`cairo.``REGION_OVERLAP_OUT`

  See `RegionOverlap.OUT`

  New in version 1.11.

`cairo.``REGION_OVERLAP_PART`

  See `RegionOverlap.PART`

  New in version 1.11.

`cairo.``STATUS_SUCCESS`
`cairo.``STATUS_NO_MEMORY`
`cairo.``STATUS_INVALID_RESTORE`
`cairo.``STATUS_INVALID_POP_GROUP`
`cairo.``STATUS_NO_CURRENT_POINT`
`cairo.``STATUS_INVALID_MATRIX`
`cairo.``STATUS_INVALID_STATUS`
`cairo.``STATUS_NULL_POINTER`
`cairo.``STATUS_INVALID_STRING`
`cairo.``STATUS_INVALID_PATH_DATA`
`cairo.``STATUS_READ_ERROR`
`cairo.``STATUS_WRITE_ERROR`
`cairo.``STATUS_SURFACE_FINISHED`
`cairo.``STATUS_SURFACE_TYPE_MISMATCH`
`cairo.``STATUS_PATTERN_TYPE_MISMATCH`
`cairo.``STATUS_INVALID_CONTENT`
`cairo.``STATUS_INVALID_FORMAT`
`cairo.``STATUS_INVALID_VISUAL`
`cairo.``STATUS_FILE_NOT_FOUND`
`cairo.``STATUS_INVALID_DASH`
`cairo.``STATUS_INVALID_DSC_COMMENT`
`cairo.``STATUS_INVALID_INDEX`
`cairo.``STATUS_CLIP_NOT_REPRESENTABLE`
`cairo.``STATUS_TEMP_FILE_ERROR`
`cairo.``STATUS_INVALID_STRIDE`
`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.``STATUS_INVALID_SIZE`
`cairo.``STATUS_USER_FONT_NOT_IMPLEMENTED`
`cairo.``STATUS_DEVICE_TYPE_MISMATCH`
`cairo.``STATUS_DEVICE_ERROR`
`cairo.``STATUS_INVALID_MESH_CONSTRUCTION`
`cairo.``STATUS_DEVICE_FINISHED`
`cairo.``STATUS_LAST_STATUS`

  See `Status`

  New in version 1.12.