File: usage.rst

package info (click to toggle)
freetype-py 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,976 kB
  • sloc: python: 7,676; makefile: 111
file content (12 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
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