summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorSteve Chaplin <>2010-09-12 21:04:44 +0800
committerSteve Chaplin <>2010-09-12 21:04:44 +0800
commitf3df40256010a0425d820136c532d54dc467f67c (patch)
tree0390a3e3c50a23d8f4d1d1dba23ba93b3e0b3d27 /doc/reference
parent59415110e1811019d49562fd06ad75d9182b9b77 (diff)
downloadpycairo-f3df40256010a0425d820136c532d54dc467f67c.tar.gz
=== Pycairo 1.8.10 ===
Many changes to make the code work with Python 3.
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/context.rst8
-rw-r--r--doc/reference/text.rst4
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/reference/context.rst b/doc/reference/context.rst
index 277bd16..dfcd78a 100644
--- a/doc/reference/context.rst
+++ b/doc/reference/context.rst
@@ -927,7 +927,7 @@ safely be changed, without loosing the current state. Use
.. method:: select_font_face(family[, slant[, weight]])
:param family: a font family name
- :type family: str or unicode
+ :type family: str
:param slant: the :ref:`FONT_SLANT <constants_FONT_SLANT>` of the font,
defaults to :data:`cairo.FONT_SLANT_NORMAL`.
:param weight: the :ref:`FONT_WEIGHT <constants_FONT_WEIGHT>` of the
@@ -1295,7 +1295,7 @@ safely be changed, without loosing the current state. Use
.. method:: show_text(text)
:param text: text
- :type text: str or unicode
+ :type text: str
A drawing operator that generates the shape from a string of text,
rendered according to the current font_face, font_size (font_matrix),
@@ -1389,7 +1389,7 @@ safely be changed, without loosing the current state. Use
.. method:: text_extents(text)
:param text: text to get extents for
- :type text: string or unicode
+ :type text: str
:returns: x_bearing, y_bearing, width, height, x_advance, y_advance
:rtype: 6-tuple of float
@@ -1409,7 +1409,7 @@ safely be changed, without loosing the current state. Use
.. method:: text_path(text)
:param text: text
- :type text: string or unicode
+ :type text: string
Adds closed paths for text to the current path. The generated path if
filled, achieves an effect similar to that of :meth:`Context.show_text`.
diff --git a/doc/reference/text.rst b/doc/reference/text.rst
index b0a261f..f7bb854 100644
--- a/doc/reference/text.rst
+++ b/doc/reference/text.rst
@@ -65,7 +65,7 @@ The *cairo.ToyFontFace* class can be used instead of :meth:`Context.select_font_
.. class:: ToyFontFace(family[, slant[, weight]])
:param family: a font family name
- :type family: str or unicode
+ :type family: str
:param slant: the :ref:`FONT_SLANT <constants_FONT_SLANT>` of the font,
defaults to :data:`cairo.FONT_SLANT_NORMAL`.
:param weight: the :ref:`FONT_WEIGHT <constants_FONT_WEIGHT>` of the font,
@@ -186,7 +186,7 @@ use.
.. method:: text_extents(text)
:param text: text
- :type text: str or unicode
+ :type text: str
:returns: (x_bearing, y_bearing, width, height, x_advance, y_advance)
:rtype: 6-tuple of float