Skip to content

Commit

Permalink
Expose CAIRO_STATUS_SVG_FONT_ERROR as Status.SVG_FONT_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Sep 24, 2023
1 parent 6b76393 commit bb4f04b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cairo/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,10 @@ class Status(_IntEnum):
"""
.. versionadded:: 1.23.0 Only available with cairo 1.17.6+
"""
SVG_FONT_ERROR: "Status" = ...
"""
.. versionadded:: 1.25.0 Only available with cairo 1.17.8+
"""

class PDFVersion(_IntEnum):
"""
Expand Down Expand Up @@ -5691,6 +5695,7 @@ STATUS_FREETYPE_ERROR = Status.FREETYPE_ERROR
STATUS_WIN32_GDI_ERROR = Status.WIN32_GDI_ERROR
STATUS_PNG_ERROR = Status.PNG_ERROR
STATUS_DWRITE_ERROR = Status.DWRITE_ERROR
STATUS_SVG_FONT_ERROR = Status.SVG_FONT_ERROR
PDF_OUTLINE_FLAG_OPEN = PDFOutlineFlags.OPEN
PDF_OUTLINE_FLAG_BOLD = PDFOutlineFlags.BOLD
PDF_OUTLINE_FLAG_ITALIC = PDFOutlineFlags.ITALIC
3 changes: 3 additions & 0 deletions cairo/enums.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ init_enums (PyObject *module) {
#endif
#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 17, 6)
CONSTANT(Status, STATUS, DWRITE_ERROR);
#endif
#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 17, 8)
CONSTANT(Status, STATUS, SVG_FONT_ERROR);
#endif
CONSTANT(Status, STATUS, LAST_STATUS);

Expand Down

0 comments on commit bb4f04b

Please sign in to comment.