summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/doc/usage.rst
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-01-13 08:50:27 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:25 -0700
commit36623f13d922461c897fe0ae1ff550a073385329 (patch)
tree9339ab434222da3393491673ea12090de381495b /third_party/freetype-py/doc/usage.rst
parent9fc4898c2338e4b9bb028171f5f8492f01879fbe (diff)
Add FreeType python bindings to third_party.
Diffstat (limited to 'third_party/freetype-py/doc/usage.rst')
-rw-r--r--third_party/freetype-py/doc/usage.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/freetype-py/doc/usage.rst b/third_party/freetype-py/doc/usage.rst
new file mode 100644
index 0000000..8d6e40d
--- /dev/null
+++ b/third_party/freetype-py/doc/usage.rst
@@ -0,0 +1,12 @@
+=============
+Usage example
+=============
+
+.. code:: python
+
+ import freetype
+ face = freetype.Face("Vera.ttf")
+ face.set_char_size( 48*64 )
+ face.load_char('S')
+ bitmap = face.glyph.bitmap
+ print bitmap.buffer