ManimPango 0.4.3__cp310-cp310-win32.whl → 1.0.0a2__cp310-cp310-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ManimPango-0.4.3.dist-info → ManimPango-1.0.0a2.dist-info}/METADATA +2 -2
- ManimPango-1.0.0a2.dist-info/RECORD +85 -0
- {ManimPango-0.4.3.dist-info → ManimPango-1.0.0a2.dist-info}/WHEEL +1 -1
- manimpango/__init__.py +5 -7
- manimpango/_distributor_init.py +36 -0
- manimpango/_version.py +1 -1
- manimpango/attributes/__init__.py +324 -0
- manimpango/attributes/attributes.pxi +219 -0
- manimpango/buffer.pxi +15 -0
- manimpango/cmanimpango.c +10025 -0
- manimpango/cmanimpango.cp310-win32.pyd +0 -0
- manimpango/enums.c +3721 -0
- manimpango/enums.cp310-win32.pyd +0 -0
- manimpango/enums.pyx +1 -10
- manimpango/exceptions.py +5 -0
- manimpango/fonts/__init__.py +153 -0
- manimpango/fonts/_font_desc.c +7576 -0
- manimpango/fonts/_font_desc.cp310-win32.pyd +0 -0
- manimpango/fonts/_font_desc.pxd +5 -0
- manimpango/fonts/_font_desc.pyi +25 -0
- manimpango/fonts/_font_desc.pyx +114 -0
- manimpango/fonts/enums.c +3628 -0
- manimpango/fonts/enums.cp310-win32.pyd +0 -0
- manimpango/fonts/enums.pyi +23 -0
- manimpango/fonts/enums.pyx +84 -0
- manimpango/{cairo.pxd → include/cairo.pxd} +21 -0
- manimpango/include/glib.pxd +36 -0
- manimpango/{pango.pxd → include/pango.pxd} +61 -0
- manimpango/include/pango_attributes.pxd +184 -0
- manimpango/layout/__init__.py +266 -0
- manimpango/layout/_layout.c +8630 -0
- manimpango/layout/_layout.cp310-win32.pyd +0 -0
- manimpango/layout/_layout.pyx +60 -0
- manimpango/layout/layout.pxi +52 -0
- manimpango/register_font.c +5016 -0
- manimpango/register_font.cp310-win32.pyd +0 -0
- manimpango/renderer/__init__.py +5 -0
- manimpango/renderer/cairo_utils.pxi +72 -0
- manimpango/renderer/image_renderer.c +12319 -0
- manimpango/renderer/image_renderer.cp310-win32.pyd +0 -0
- manimpango/renderer/image_renderer.pxd +23 -0
- manimpango/renderer/image_renderer.pyi +21 -0
- manimpango/renderer/image_renderer.pyx +219 -0
- manimpango/renderer/svg_renderer.c +10671 -0
- manimpango/renderer/svg_renderer.cp310-win32.pyd +0 -0
- manimpango/renderer/svg_renderer.pxd +23 -0
- manimpango/renderer/svg_renderer.pyi +17 -0
- manimpango/renderer/svg_renderer.pyx +174 -0
- manimpango/utils/__init__.py +3 -0
- manimpango/utils/_utils.cp310-win32.pyd +0 -0
- manimpango/utils/_utils.pyi +2 -0
- manimpango/utils/utils.c +3533 -0
- manimpango/{utils.py → utils/utils.py} +3 -1
- manimpango/utils/utils.pyx +27 -0
- ManimPango-0.4.3.dist-info/RECORD +0 -44
- manimpango/glib.pxd +0 -13
- {ManimPango-0.4.3.dist-info → ManimPango-1.0.0a2.dist-info}/LICENSE +0 -0
- {ManimPango-0.4.3.dist-info → ManimPango-1.0.0a2.dist-info}/LICENSE.win32 +0 -0
- {ManimPango-0.4.3.dist-info → ManimPango-1.0.0a2.dist-info}/top_level.txt +0 -0
- /manimpango/{CORE_MANIM_cairo-2.dll → .libs/CORE_MANIM_cairo-2.dll} +0 -0
- /manimpango/{CORE_MANIM_cairo-gobject-2.dll → .libs/CORE_MANIM_cairo-gobject-2.dll} +0 -0
- /manimpango/{CORE_MANIM_cairo-script-interpreter-2.dll → .libs/CORE_MANIM_cairo-script-interpreter-2.dll} +0 -0
- /manimpango/{CORE_MANIM_expat.dll → .libs/CORE_MANIM_expat.dll} +0 -0
- /manimpango/{CORE_MANIM_ffi-7.dll → .libs/CORE_MANIM_ffi-7.dll} +0 -0
- /manimpango/{CORE_MANIM_fontconfig-1.dll → .libs/CORE_MANIM_fontconfig-1.dll} +0 -0
- /manimpango/{CORE_MANIM_freetype-6.dll → .libs/CORE_MANIM_freetype-6.dll} +0 -0
- /manimpango/{CORE_MANIM_fribidi-0.dll → .libs/CORE_MANIM_fribidi-0.dll} +0 -0
- /manimpango/{CORE_MANIM_gio-2.0-0.dll → .libs/CORE_MANIM_gio-2.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_glib-2.0-0.dll → .libs/CORE_MANIM_glib-2.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_gmodule-2.0-0.dll → .libs/CORE_MANIM_gmodule-2.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_gobject-2.0-0.dll → .libs/CORE_MANIM_gobject-2.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_gthread-2.0-0.dll → .libs/CORE_MANIM_gthread-2.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_harfbuzz-gobject.dll → .libs/CORE_MANIM_harfbuzz-gobject.dll} +0 -0
- /manimpango/{CORE_MANIM_harfbuzz-subset.dll → .libs/CORE_MANIM_harfbuzz-subset.dll} +0 -0
- /manimpango/{CORE_MANIM_harfbuzz.dll → .libs/CORE_MANIM_harfbuzz.dll} +0 -0
- /manimpango/{CORE_MANIM_intl-8.dll → .libs/CORE_MANIM_intl-8.dll} +0 -0
- /manimpango/{CORE_MANIM_pango-1.0-0.dll → .libs/CORE_MANIM_pango-1.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_pangocairo-1.0-0.dll → .libs/CORE_MANIM_pangocairo-1.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_pangoft2-1.0-0.dll → .libs/CORE_MANIM_pangoft2-1.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_pangowin32-1.0-0.dll → .libs/CORE_MANIM_pangowin32-1.0-0.dll} +0 -0
- /manimpango/{CORE_MANIM_pixman-1-0.dll → .libs/CORE_MANIM_pixman-1-0.dll} +0 -0
- /manimpango/{CORE_MANIM_png16-16.dll → .libs/CORE_MANIM_png16-16.dll} +0 -0
- /manimpango/{CORE_MANIM_z.dll → .libs/CORE_MANIM_z.dll} +0 -0
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
from enum import Enum
|
2
|
+
|
3
|
+
class Style(Enum):
|
4
|
+
NORMAL = ...
|
5
|
+
ITALIC = ...
|
6
|
+
OBLIQUE = ...
|
7
|
+
|
8
|
+
class Weight(Enum):
|
9
|
+
NORMAL = ...
|
10
|
+
BOLD = ...
|
11
|
+
THIN = ...
|
12
|
+
ULTRALIGHT = ...
|
13
|
+
LIGHT = ...
|
14
|
+
BOOK = ...
|
15
|
+
MEDIUM = ...
|
16
|
+
SEMIBOLD = ...
|
17
|
+
ULTRABOLD = ...
|
18
|
+
HEAVY = ...
|
19
|
+
ULTRAHEAVY = ...
|
20
|
+
|
21
|
+
class Variant(Enum):
|
22
|
+
NORMAL = ...
|
23
|
+
SMALL_CAPS = ...
|
@@ -0,0 +1,84 @@
|
|
1
|
+
"""Contains Enums which defines text properties from Pango.
|
2
|
+
|
3
|
+
Most of these are used in :class:`FontDescription`.
|
4
|
+
"""
|
5
|
+
from pango cimport *
|
6
|
+
from enum import Enum
|
7
|
+
|
8
|
+
__all__ = ['Style', 'Weight', 'Variant']
|
9
|
+
|
10
|
+
class Style(Enum):
|
11
|
+
"""
|
12
|
+
An enumeration specifying the various slant styles possible for a font.
|
13
|
+
|
14
|
+
Attributes
|
15
|
+
----------
|
16
|
+
|
17
|
+
NORMAL:
|
18
|
+
the font is upright.
|
19
|
+
ITALIC:
|
20
|
+
the font is slanted, but in a roman style.
|
21
|
+
OBLIQUE:
|
22
|
+
the font is slanted in an italic style.
|
23
|
+
"""
|
24
|
+
NORMAL = PANGO_STYLE_NORMAL
|
25
|
+
ITALIC = PANGO_STYLE_ITALIC
|
26
|
+
OBLIQUE = PANGO_STYLE_OBLIQUE
|
27
|
+
|
28
|
+
class Weight(Enum):
|
29
|
+
"""
|
30
|
+
An enumeration specifying the weight (boldness) of a font.
|
31
|
+
This is a numerical value ranging from 100 to 1000, but there are some predefined values
|
32
|
+
Using numerical value other then that defined here is not supported.
|
33
|
+
|
34
|
+
Attributes
|
35
|
+
----------
|
36
|
+
NORMAL:
|
37
|
+
the default weight (= 400)
|
38
|
+
BOLD:
|
39
|
+
the bold weight( = 700)
|
40
|
+
THIN:
|
41
|
+
the thin weight( = 100; Since: 1.24)
|
42
|
+
ULTRALIGHT:
|
43
|
+
the ultralight weight( = 200)
|
44
|
+
LIGHT:
|
45
|
+
the light weight( = 300)
|
46
|
+
BOOK:
|
47
|
+
the book weight( = 380; Since: 1.24)
|
48
|
+
MEDIUM:
|
49
|
+
the normal weight( = 500; Since: 1.24)
|
50
|
+
SEMIBOLD:
|
51
|
+
the semibold weight( = 600)
|
52
|
+
ULTRABOLD:
|
53
|
+
the ultrabold weight( = 800)
|
54
|
+
HEAVY:
|
55
|
+
the heavy weight( = 900)
|
56
|
+
ULTRAHEAVY:
|
57
|
+
the ultraheavy weight( = 1000; Since: 1.24)
|
58
|
+
"""
|
59
|
+
NORMAL = PANGO_WEIGHT_NORMAL
|
60
|
+
BOLD = PANGO_WEIGHT_BOLD
|
61
|
+
THIN = PANGO_WEIGHT_THIN
|
62
|
+
ULTRALIGHT = PANGO_WEIGHT_ULTRALIGHT
|
63
|
+
LIGHT = PANGO_WEIGHT_LIGHT
|
64
|
+
BOOK = PANGO_WEIGHT_BOOK
|
65
|
+
MEDIUM = PANGO_WEIGHT_MEDIUM
|
66
|
+
SEMIBOLD = PANGO_WEIGHT_SEMIBOLD
|
67
|
+
ULTRABOLD = PANGO_WEIGHT_ULTRABOLD
|
68
|
+
HEAVY = PANGO_WEIGHT_HEAVY
|
69
|
+
ULTRAHEAVY = PANGO_WEIGHT_ULTRAHEAVY
|
70
|
+
|
71
|
+
class Variant(Enum):
|
72
|
+
"""
|
73
|
+
An enumeration specifying capitalization variant of the font.
|
74
|
+
|
75
|
+
Attributes
|
76
|
+
----------
|
77
|
+
NORMAL:
|
78
|
+
A normal font.
|
79
|
+
SMALL_CAPS:
|
80
|
+
A font with the lower case characters replaced by smaller variants
|
81
|
+
of the capital characters.
|
82
|
+
"""
|
83
|
+
NORMAL = PANGO_VARIANT_NORMAL
|
84
|
+
SMALL_CAPS = PANGO_VARIANT_SMALL_CAPS
|
@@ -6,6 +6,8 @@ cdef extern from "cairo.h":
|
|
6
6
|
ctypedef enum cairo_status_t:
|
7
7
|
CAIRO_STATUS_SUCCESS
|
8
8
|
CAIRO_STATUS_NO_MEMORY
|
9
|
+
ctypedef enum cairo_format_t:
|
10
|
+
CAIRO_FORMAT_ARGB32
|
9
11
|
cairo_t* cairo_create(cairo_surface_t* target)
|
10
12
|
void cairo_move_to(
|
11
13
|
cairo_t* cr,
|
@@ -18,6 +20,25 @@ cdef extern from "cairo.h":
|
|
18
20
|
cairo_status_t cairo_status(cairo_t *cr)
|
19
21
|
const char* cairo_status_to_string(cairo_status_t status)
|
20
22
|
const char* cairo_version_string()
|
23
|
+
cairo_surface_t* cairo_image_surface_create(
|
24
|
+
cairo_format_t format,
|
25
|
+
int width,
|
26
|
+
int height
|
27
|
+
)
|
28
|
+
cairo_status_t cairo_surface_write_to_png(
|
29
|
+
cairo_surface_t *surface,
|
30
|
+
const char *filename
|
31
|
+
)
|
32
|
+
unsigned char * cairo_image_surface_get_data(
|
33
|
+
cairo_surface_t *surface
|
34
|
+
)
|
35
|
+
int cairo_image_surface_get_stride(
|
36
|
+
cairo_surface_t *surface
|
37
|
+
)
|
38
|
+
int cairo_image_surface_get_height(
|
39
|
+
cairo_surface_t *surface
|
40
|
+
)
|
41
|
+
|
21
42
|
|
22
43
|
cdef extern from "cairo-svg.h":
|
23
44
|
cairo_surface_t* cairo_svg_surface_create(
|
@@ -0,0 +1,36 @@
|
|
1
|
+
cdef extern from "glib.h":
|
2
|
+
ctypedef void* gpointer
|
3
|
+
ctypedef int gint
|
4
|
+
ctypedef unsigned int guint
|
5
|
+
ctypedef gint gboolean
|
6
|
+
ctypedef unsigned short guint16
|
7
|
+
ctypedef char gchar
|
8
|
+
ctypedef struct GError:
|
9
|
+
gint code
|
10
|
+
gchar *message
|
11
|
+
void g_error_free (GError *error)
|
12
|
+
void g_object_unref(gpointer object)
|
13
|
+
void g_free(gpointer mem)
|
14
|
+
|
15
|
+
# GQueue is used while gathering pango attributes
|
16
|
+
# internally. It's way better than implementing one
|
17
|
+
# ourselves.
|
18
|
+
|
19
|
+
ctypedef struct GQueue:
|
20
|
+
guint length
|
21
|
+
GQueue* g_queue_new ()
|
22
|
+
void g_queue_free (
|
23
|
+
GQueue* queue,
|
24
|
+
)
|
25
|
+
bint g_queue_is_empty (
|
26
|
+
GQueue* queue
|
27
|
+
)
|
28
|
+
|
29
|
+
# Insert at last and pop from first
|
30
|
+
void g_queue_push_tail (
|
31
|
+
GQueue* queue,
|
32
|
+
gpointer data,
|
33
|
+
)
|
34
|
+
gpointer g_queue_pop_head (
|
35
|
+
GQueue* queue,
|
36
|
+
)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
from cairo cimport *
|
2
2
|
from glib cimport *
|
3
|
+
from pango_attributes cimport *
|
3
4
|
|
4
5
|
|
5
6
|
cdef extern from "pango/pangocairo.h":
|
@@ -16,6 +17,11 @@ cdef extern from "pango/pangocairo.h":
|
|
16
17
|
pass
|
17
18
|
ctypedef struct PangoFontFamily:
|
18
19
|
pass
|
20
|
+
ctypedef struct PangoRectangle:
|
21
|
+
int x
|
22
|
+
int y
|
23
|
+
int width
|
24
|
+
int height
|
19
25
|
ctypedef enum PangoStyle:
|
20
26
|
PANGO_STYLE_NORMAL
|
21
27
|
PANGO_STYLE_OBLIQUE
|
@@ -43,6 +49,10 @@ cdef extern from "pango/pangocairo.h":
|
|
43
49
|
PANGO_ALIGN_LEFT
|
44
50
|
PANGO_ALIGN_CENTER
|
45
51
|
PANGO_ALIGN_RIGHT
|
52
|
+
ctypedef struct PangoColor:
|
53
|
+
guint16 red
|
54
|
+
guint16 green
|
55
|
+
guint16 blue
|
46
56
|
PangoLayout* pango_cairo_create_layout(cairo_t* cr)
|
47
57
|
void pango_cairo_show_layout(
|
48
58
|
cairo_t* cr,
|
@@ -57,6 +67,10 @@ cdef extern from "pango/pangocairo.h":
|
|
57
67
|
PangoFontDescription* desc,
|
58
68
|
gint size
|
59
69
|
)
|
70
|
+
void pango_font_description_set_absolute_size(
|
71
|
+
PangoFontDescription* desc,
|
72
|
+
double size
|
73
|
+
)
|
60
74
|
void pango_font_description_set_family(
|
61
75
|
PangoFontDescription* desc,
|
62
76
|
const char* family
|
@@ -73,11 +87,44 @@ cdef extern from "pango/pangocairo.h":
|
|
73
87
|
PangoFontDescription* desc,
|
74
88
|
PangoVariant variant
|
75
89
|
)
|
90
|
+
char* pango_font_description_to_string(
|
91
|
+
const PangoFontDescription* desc
|
92
|
+
)
|
93
|
+
gboolean pango_font_description_equal(
|
94
|
+
const PangoFontDescription* desc1,
|
95
|
+
const PangoFontDescription* desc2
|
96
|
+
)
|
97
|
+
PangoFontDescription* pango_font_description_copy(
|
98
|
+
const PangoFontDescription* desc
|
99
|
+
)
|
100
|
+
const char* pango_font_description_get_family(
|
101
|
+
const PangoFontDescription* desc
|
102
|
+
)
|
103
|
+
gint pango_font_description_get_size(
|
104
|
+
const PangoFontDescription* desc
|
105
|
+
)
|
106
|
+
PangoStyle pango_font_description_get_style(
|
107
|
+
const PangoFontDescription* desc
|
108
|
+
)
|
109
|
+
PangoWeight pango_font_description_get_weight(
|
110
|
+
const PangoFontDescription* desc
|
111
|
+
)
|
112
|
+
PangoVariant pango_font_description_get_variant(
|
113
|
+
const PangoFontDescription* desc
|
114
|
+
)
|
115
|
+
PangoFontDescription* pango_font_description_from_string(
|
116
|
+
const char* str
|
117
|
+
)
|
118
|
+
|
76
119
|
|
77
120
|
void pango_layout_set_width(
|
78
121
|
PangoLayout* layout,
|
79
122
|
int width
|
80
123
|
)
|
124
|
+
void pango_layout_set_height(
|
125
|
+
PangoLayout* layout,
|
126
|
+
int height
|
127
|
+
)
|
81
128
|
void pango_layout_set_font_description(
|
82
129
|
PangoLayout* layout,
|
83
130
|
const PangoFontDescription* desc
|
@@ -139,6 +186,20 @@ cdef extern from "pango/pangocairo.h":
|
|
139
186
|
PangoLayout *layout,
|
140
187
|
PangoAlignment alignment
|
141
188
|
)
|
189
|
+
void pango_layout_set_attributes (
|
190
|
+
PangoLayout* layout,
|
191
|
+
PangoAttrList* attrs
|
192
|
+
)
|
193
|
+
gboolean pango_color_parse(
|
194
|
+
PangoColor* color,
|
195
|
+
const char* spec
|
196
|
+
)
|
197
|
+
void pango_layout_get_pixel_extents (
|
198
|
+
PangoLayout* layout,
|
199
|
+
PangoRectangle* ink_rect,
|
200
|
+
PangoRectangle* logical_rect
|
201
|
+
)
|
202
|
+
|
142
203
|
|
143
204
|
cdef extern from *:
|
144
205
|
"""
|
@@ -0,0 +1,184 @@
|
|
1
|
+
from glib cimport *
|
2
|
+
from pango cimport *
|
3
|
+
|
4
|
+
|
5
|
+
cdef extern from "pango/pango.h":
|
6
|
+
ctypedef struct PangoAttribute:
|
7
|
+
guint start_index
|
8
|
+
guint end_index
|
9
|
+
ctypedef struct PangoLanguage:
|
10
|
+
pass
|
11
|
+
ctypedef enum PangoGravityHint:
|
12
|
+
PANGO_GRAVITY_HINT_NATURAL
|
13
|
+
PANGO_GRAVITY_HINT_STRONG
|
14
|
+
PANGO_GRAVITY_HINT_LINE
|
15
|
+
ctypedef enum PangoGravity:
|
16
|
+
PANGO_GRAVITY_SOUTH
|
17
|
+
PANGO_GRAVITY_EAST
|
18
|
+
PANGO_GRAVITY_NORTH
|
19
|
+
PANGO_GRAVITY_WEST
|
20
|
+
ctypedef enum PangoOverline:
|
21
|
+
PANGO_OVERLINE_NONE
|
22
|
+
PANGO_OVERLINE_SINGLE
|
23
|
+
ctypedef enum PangoShowFlags:
|
24
|
+
PANGO_SHOW_NONE
|
25
|
+
PANGO_SHOW_SPACES
|
26
|
+
PANGO_SHOW_LINE_BREAKS
|
27
|
+
PANGO_SHOW_IGNORABLES
|
28
|
+
ctypedef enum PangoStretch:
|
29
|
+
PANGO_STRETCH_ULTRA_CONDENSED
|
30
|
+
PANGO_STRETCH_EXTRA_CONDENSED
|
31
|
+
PANGO_STRETCH_CONDENSED
|
32
|
+
PANGO_STRETCH_SEMI_CONDENSED
|
33
|
+
PANGO_STRETCH_NORMAL
|
34
|
+
PANGO_STRETCH_SEMI_EXPANDED
|
35
|
+
PANGO_STRETCH_EXPANDED
|
36
|
+
PANGO_STRETCH_EXTRA_EXPANDED
|
37
|
+
PANGO_STRETCH_ULTRA_EXPANDED
|
38
|
+
ctypedef enum PangoUnderline:
|
39
|
+
PANGO_UNDERLINE_NONE
|
40
|
+
PANGO_UNDERLINE_SINGLE
|
41
|
+
PANGO_UNDERLINE_DOUBLE
|
42
|
+
PANGO_UNDERLINE_LOW
|
43
|
+
PANGO_UNDERLINE_ERROR
|
44
|
+
PANGO_UNDERLINE_SINGLE_LINE
|
45
|
+
PANGO_UNDERLINE_DOUBLE_LINE
|
46
|
+
PANGO_UNDERLINE_ERROR_LINE
|
47
|
+
PangoAttribute* pango_attr_allow_breaks_new (
|
48
|
+
gboolean allow_breaks
|
49
|
+
)
|
50
|
+
PangoAttribute* pango_attr_background_alpha_new (
|
51
|
+
guint16 alpha
|
52
|
+
)
|
53
|
+
PangoAttribute* pango_attr_background_new (
|
54
|
+
guint16 red,
|
55
|
+
guint16 green,
|
56
|
+
guint16 blue
|
57
|
+
)
|
58
|
+
PangoAttribute* pango_attr_fallback_new (
|
59
|
+
gboolean enable_fallback
|
60
|
+
)
|
61
|
+
PangoAttribute* pango_attr_family_new (
|
62
|
+
const char* family
|
63
|
+
)
|
64
|
+
PangoAttribute* pango_attr_font_desc_new (
|
65
|
+
const PangoFontDescription* desc
|
66
|
+
)
|
67
|
+
PangoAttribute* pango_attr_font_features_new (
|
68
|
+
const char* features
|
69
|
+
)
|
70
|
+
PangoAttribute* pango_attr_foreground_alpha_new (
|
71
|
+
guint16 alpha
|
72
|
+
)
|
73
|
+
PangoAttribute* pango_attr_foreground_new (
|
74
|
+
guint16 red,
|
75
|
+
guint16 green,
|
76
|
+
guint16 blue
|
77
|
+
)
|
78
|
+
PangoAttribute* pango_attr_gravity_hint_new (
|
79
|
+
PangoGravityHint hint
|
80
|
+
)
|
81
|
+
PangoAttribute* pango_attr_gravity_new (
|
82
|
+
PangoGravity gravity
|
83
|
+
)
|
84
|
+
PangoAttribute* pango_attr_insert_hyphens_new (
|
85
|
+
gboolean insert_hyphens
|
86
|
+
)
|
87
|
+
PangoAttribute* pango_attr_language_new (
|
88
|
+
PangoLanguage* language
|
89
|
+
)
|
90
|
+
PangoAttribute* pango_attr_letter_spacing_new (
|
91
|
+
int letter_spacing
|
92
|
+
)
|
93
|
+
PangoAttribute* pango_attr_overline_color_new (
|
94
|
+
guint16 red,
|
95
|
+
guint16 green,
|
96
|
+
guint16 blue
|
97
|
+
)
|
98
|
+
PangoAttribute* pango_attr_overline_new (
|
99
|
+
PangoOverline overline
|
100
|
+
)
|
101
|
+
PangoAttribute* pango_attr_rise_new (
|
102
|
+
int rise
|
103
|
+
)
|
104
|
+
PangoAttribute* pango_attr_scale_new (
|
105
|
+
double scale_factor
|
106
|
+
)
|
107
|
+
# PangoAttribute* pango_attr_shape_new (
|
108
|
+
# const PangoRectangle* ink_rect,
|
109
|
+
# const PangoRectangle* logical_rect
|
110
|
+
# )
|
111
|
+
# PangoAttribute* pango_attr_shape_new_with_data (
|
112
|
+
# const PangoRectangle* ink_rect,
|
113
|
+
# const PangoRectangle* logical_rect,
|
114
|
+
# gpointer data,
|
115
|
+
# PangoAttrDataCopyFunc copy_func,
|
116
|
+
# GDestroyNotify destroy_func
|
117
|
+
# )
|
118
|
+
PangoAttribute* pango_attr_show_new (
|
119
|
+
PangoShowFlags flags
|
120
|
+
)
|
121
|
+
PangoAttribute* pango_attr_size_new (
|
122
|
+
int size
|
123
|
+
)
|
124
|
+
PangoAttribute* pango_attr_size_new_absolute (
|
125
|
+
int size
|
126
|
+
)
|
127
|
+
PangoAttribute* pango_attr_stretch_new (
|
128
|
+
PangoStretch stretch
|
129
|
+
)
|
130
|
+
PangoAttribute* pango_attr_strikethrough_color_new (
|
131
|
+
guint16 red,
|
132
|
+
guint16 green,
|
133
|
+
guint16 blue
|
134
|
+
)
|
135
|
+
PangoAttribute* pango_attr_strikethrough_new (
|
136
|
+
gboolean strikethrough
|
137
|
+
)
|
138
|
+
PangoAttribute* pango_attr_style_new (
|
139
|
+
PangoStyle style
|
140
|
+
)
|
141
|
+
PangoAttribute* pango_attr_underline_color_new (
|
142
|
+
guint16 red,
|
143
|
+
guint16 green,
|
144
|
+
guint16 blue
|
145
|
+
)
|
146
|
+
PangoAttribute* pango_attr_underline_new (
|
147
|
+
PangoUnderline underline
|
148
|
+
)
|
149
|
+
PangoAttribute* pango_attr_variant_new (
|
150
|
+
PangoVariant variant
|
151
|
+
)
|
152
|
+
PangoAttribute* pango_attr_weight_new (
|
153
|
+
PangoWeight weight
|
154
|
+
)
|
155
|
+
PangoAttribute* pango_attr_line_height_new (
|
156
|
+
double factor
|
157
|
+
)
|
158
|
+
void pango_attribute_destroy (
|
159
|
+
PangoAttribute* attr
|
160
|
+
)
|
161
|
+
|
162
|
+
# Functions related to PangoAttrList
|
163
|
+
cdef extern from "pango/pango.h":
|
164
|
+
ctypedef struct PangoAttrList:
|
165
|
+
pass
|
166
|
+
PangoAttrList* pango_attr_list_new ()
|
167
|
+
void pango_attr_list_change (
|
168
|
+
PangoAttrList* list,
|
169
|
+
PangoAttribute* attr,
|
170
|
+
)
|
171
|
+
PangoAttrList* pango_attr_list_ref (
|
172
|
+
PangoAttrList* list
|
173
|
+
)
|
174
|
+
void pango_attr_list_unref (
|
175
|
+
PangoAttrList* list
|
176
|
+
)
|
177
|
+
void pango_attr_list_insert (
|
178
|
+
PangoAttrList* list,
|
179
|
+
PangoAttribute* attr
|
180
|
+
)
|
181
|
+
# for debugging
|
182
|
+
char* pango_attr_list_to_string (
|
183
|
+
PangoAttrList* list
|
184
|
+
)
|