Submit
Path:
~
/
/
usr
/
share
/
gtk-doc
/
html
/
harfbuzz
/
File Content:
integration-python.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Python bindings: HarfBuzz Manual</title> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="index.html" title="HarfBuzz Manual"> <link rel="up" href="integration.html" title="Platform Integration Guide"> <link rel="prev" href="integration-icu.html" title="ICU integration"> <link rel="next" href="pt02.html" title="Part II. Reference manual"> <meta name="generator" content="GTK-Doc V1.32 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="integration.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="integration-icu.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="pt02.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="integration-python"></a>Python bindings</h2></div></div></div> <p> As noted in the <a class="xref" href="integration.html#integration-glib" title="GNOME integration, GLib, and GObject">the section called “GNOME integration, GLib, and GObject”</a> section, HarfBuzz uses a feature called <a class="ulink" href="https://wiki.gnome.org/Projects/GObjectIntrospection" target="_top">GObject Introspection</a> (GI) to provide bindings for Python. </p> <p> At compile time, the GI scanner analyzes the HarfBuzz C source and builds metadata objects connecting the language bindings to the C library. Your Python code can then use the HarfBuzz binary through its Python interface. </p> <p> HarfBuzz's Python bindings support Python 2 and Python 3. To use them, you will need to have the <code class="literal">pygobject</code> package installed. Then you should import <code class="literal">HarfBuzz</code> from <code class="literal">gi.repository</code>: </p> <pre class="programlisting"> from gi.repository import HarfBuzz </pre> <p> and you can call HarfBuzz functions from Python. Sample code can be found in the <code class="filename">sample.py</code> script in the HarfBuzz <code class="filename">src</code> directory. </p> <p> Do note, however, that the Python API is subject to change without advance notice. GI allows the bindings to be automatically updated, which is one of its advantages, but you may need to update your Python code. </p> </div> <div class="footer"> <hr>Generated by GTK-Doc V1.32</div> </body> </html>
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
HarfBuzz.png
6254 bytes
0644
HarfBuzz.svg
6745 bytes
0644
a-clustering-example-for-levels-0-and-1.html
5307 bytes
0644
aat-shaping.html
2359 bytes
0644
adding-text-to-the-buffer.html
5800 bytes
0644
annotation-glossary.html
5644 bytes
0644
api-index-0-9-10.html
3200 bytes
0644
api-index-0-9-11.html
2070 bytes
0644
api-index-0-9-2.html
44447 bytes
0644
api-index-0-9-20.html
2303 bytes
0644
api-index-0-9-22.html
2115 bytes
0644
api-index-0-9-28.html
2062 bytes
0644
api-index-0-9-30.html
2525 bytes
0644
api-index-0-9-31.html
2932 bytes
0644
api-index-0-9-38.html
3822 bytes
0644
api-index-0-9-39.html
2058 bytes
0644
api-index-0-9-41.html
2067 bytes
0644
api-index-0-9-42.html
2587 bytes
0644
api-index-0-9-5.html
3339 bytes
0644
api-index-0-9-7.html
12306 bytes
0644
api-index-0-9-8.html
2088 bytes
0644
api-index-1-0-5.html
2737 bytes
0644
api-index-1-1-2.html
2374 bytes
0644
api-index-1-1-3.html
2957 bytes
0644
api-index-1-2-3.html
2872 bytes
0644
api-index-1-3-3.html
5536 bytes
0644
api-index-1-4-0.html
2347 bytes
0644
api-index-1-4-2.html
5369 bytes
0644
api-index-1-4-3.html
2029 bytes
0644
api-index-1-5-0.html
2900 bytes
0644
api-index-1-6-0.html
2266 bytes
0644
api-index-1-7-5.html
1701 bytes
0644
api-index-1-7-7.html
5550 bytes
0644
api-index-1-8-0.html
2662 bytes
0644
api-index-1-8-1.html
2485 bytes
0644
api-index-1-8-5.html
2088 bytes
0644
api-index-1-8-6.html
3187 bytes
0644
api-index-1-9-0.html
3460 bytes
0644
api-index-2-0-0.html
5926 bytes
0644
api-index-2-1-0.html
8069 bytes
0644
api-index-2-2-0.html
5326 bytes
0644
api-index-2-3-0.html
2650 bytes
0644
api-index-2-4-0.html
2087 bytes
0644
api-index-2-5-0.html
2108 bytes
0644
api-index-2-6-0.html
5240 bytes
0644
api-index-2-7-3.html
2824 bytes
0644
api-index-full.html
140340 bytes
0644
buffers-language-script-and-direction.html
4951 bytes
0644
building.html
15346 bytes
0644
ch01s03.html
4495 bytes
0644
ch03s02.html
6078 bytes
0644
ch03s03.html
4580 bytes
0644
ch12.html
3557 bytes
0644
ch13.html
3078 bytes
0644
ch14.html
1876 bytes
0644
ch15.html
3044 bytes
0644
clusters.html
6499 bytes
0644
complex-scripts.html
3001 bytes
0644
customizing-unicode-functions.html
6400 bytes
0644
deprecated-api-index.html
6223 bytes
0644
fonts-and-faces-custom-functions.html
7398 bytes
0644
fonts-and-faces-native-opentype.html
5196 bytes
0644
fonts-and-faces-variable.html
5304 bytes
0644
fonts-and-faces.html
7671 bytes
0644
getting-started.html
5043 bytes
0644
graphite-shaping.html
2308 bytes
0644
harfbuzz-hb-aat-layout.html
139345 bytes
0644
harfbuzz-hb-blob.html
35902 bytes
0644
harfbuzz-hb-buffer.html
195491 bytes
0644
harfbuzz-hb-common.html
65323 bytes
0644
harfbuzz-hb-coretext.html
11371 bytes
0644
harfbuzz-hb-deprecated.html
25328 bytes
0644
harfbuzz-hb-directwrite.html
6155 bytes
0644
harfbuzz-hb-face.html
52100 bytes
0644
harfbuzz-hb-font.html
262696 bytes
0644
harfbuzz-hb-ft.html
28719 bytes
0644
harfbuzz-hb-gdi.html
4310 bytes
0644
harfbuzz-hb-glib.html
10086 bytes
0644
harfbuzz-hb-gobject.html
2953 bytes
0644
harfbuzz-hb-graphite2.html
5828 bytes
0644
harfbuzz-hb-icu.html
7969 bytes
0644
harfbuzz-hb-map.html
29188 bytes
0644
harfbuzz-hb-ot-color.html
39949 bytes
0644
harfbuzz-hb-ot-font.html
4630 bytes
0644
harfbuzz-hb-ot-layout.html
145088 bytes
0644
harfbuzz-hb-ot-math.html
52886 bytes
0644
harfbuzz-hb-ot-meta.html
10286 bytes
0644
harfbuzz-hb-ot-metrics.html
17927 bytes
0644
harfbuzz-hb-ot-name.html
19603 bytes
0644
harfbuzz-hb-ot-shape.html
6257 bytes
0644
harfbuzz-hb-ot-var.html
36708 bytes
0644
harfbuzz-hb-set.html
59423 bytes
0644
harfbuzz-hb-shape-plan.html
38412 bytes
0644
harfbuzz-hb-shape.html
11702 bytes
0644
harfbuzz-hb-unicode.html
106701 bytes
0644
harfbuzz-hb-uniscribe.html
6099 bytes
0644
harfbuzz-hb-version.html
10415 bytes
0644
harfbuzz.devhelp2
179457 bytes
0644
home.png
169 bytes
0644
index.html
19566 bytes
0644
install-harfbuzz.html
3787 bytes
0644
integration-coretext.html
6483 bytes
0644
integration-freetype.html
9293 bytes
0644
integration-icu.html
4186 bytes
0644
integration-python.html
3181 bytes
0644
integration-uniscribe.html
6725 bytes
0644
integration.html
9936 bytes
0644
left-insensitive.png
334 bytes
0644
left.png
185 bytes
0644
level-2.html
7009 bytes
0644
object-model-blobs.html
2902 bytes
0644
object-model-lifecycle.html
4978 bytes
0644
object-model-object-types.html
4111 bytes
0644
object-model-user-data.html
3255 bytes
0644
object-model.html
3978 bytes
0644
opentype-shaping-models.html
4463 bytes
0644
pt01.html
9417 bytes
0644
pt02.html
12674 bytes
0644
reordering-in-levels-0-and-1.html
3102 bytes
0644
right-insensitive.png
233 bytes
0644
right.png
184 bytes
0644
setting-buffer-properties.html
7830 bytes
0644
shaping-and-shape-plans.html
8196 bytes
0644
shaping-concepts.html
3869 bytes
0644
shaping-opentype-features.html
6663 bytes
0644
shaping-operations.html
4537 bytes
0644
shaping-plans-and-caching.html
4641 bytes
0644
shaping-shaper-selection.html
3406 bytes
0644
style.css
11606 bytes
0644
text-runs.html
2533 bytes
0644
the-distinction-between-levels-0-and-1.html
4864 bytes
0644
unicode-character-categories.html
4204 bytes
0644
up-insensitive.png
288 bytes
0644
up.png
186 bytes
0644
utilities-common-types-apis.html
4365 bytes
0644
utilities-ucdn.html
2632 bytes
0644
utilities.html
9274 bytes
0644
what-harfbuzz-doesnt-do.html
5535 bytes
0644
what-is-harfbuzz.html
5503 bytes
0644
why-do-i-need-a-shaping-engine.html
8124 bytes
0644
why-is-it-called-harfbuzz.html
2171 bytes
0644
working-with-harfbuzz-clusters.html
10083 bytes
0644
N4ST4R_ID | Naxtarrr