Module Expr Str Import alias ImportFrom alias ImportFrom alias alias Assign NameStore TupleLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpAdd Str Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpAdd Str Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Str orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpAdd Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A :mod:`wand.font` --- Fonts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 0.3.0

:class:`Font` is an object which takes the :attr:`~Font.path` of font file,
:attr:`~Font.size`, :attr:`~Font.color`, and whether to use
:attr:`~Font.antialias`\ ing.  If you want to use font by its name rather
than the file path, use TTFQuery_ package.  The font path resolution by its
name is a very complicated problem to achieve.

.. seealso::

   TTFQuery_ --- Find and Extract Information from TTF Files
      TTFQuery builds on the `FontTools-TTX`_ package to allow the Python
      programmer to accomplish a number of tasks:

      - query the system to find installed fonts

      - retrieve metadata about any TTF font file

        - this includes the glyph outlines (shape) of individual code-points,
          which allows for rendering the glyphs in 3D (such as is done in
          OpenGLContext)

      - lookup/find fonts by:

        - abstract family type
        - proper font name

      - build simple metadata registries for run-time font matching

.. _TTFQuery: http://ttfquery.sourceforge.net/
.. _FontTools-TTX: http://sourceforge.net/projects/fonttools/

 N/A numbers color Color compat string_type text N/A __all__ N/A Font Font N/A tuple N/A N/A Font struct which is a subtype of :class:`tuple`.

    :param path: the path of the font file
    :type path: :class:`str`, :class:`basestring`
    :param size: the size of typeface.  0 by default which means *autosized*
    :type size: :class:`numbers.Real`
    :param color: the color of typeface.  black by default
    :type color: :class:`~wand.color.Color`
    :param antialias: whether to use antialiasing.  :const:`True` by default
    :type antialias: :class:`bool`

    .. versionchanged:: 0.3.9
       The ``size`` parameter becomes optional.  Its default value is
       0, which means *autosized*.

     __new__ N/A N/A cls path size color antialias N/A 0 None True N/A N/A N/A N/A isinstance path string_type N/A N/A N/A TypeError N/A path must be a string, not  N/A repr path N/A N/A N/A isinstance size N/A numbers Real N/A N/A N/A TypeError N/A size must be a real number, not  N/A repr size N/A N/A color None N/A N/A color N/A Color black N/A N/A N/A N/A isinstance color Color N/A N/A N/A TypeError N/A color must be an instance of wand.color.Color, not  N/A repr color N/A path N/A text path N/A N/A N/A tuple __new__ cls N/A path size color N/A bool antialias N/A path N/A N/A self N/A N/A N/A (:class:`basestring`) The path of font file. N/A N/A self N/A 0 N/A property size N/A N/A self N/A N/A N/A (:class:`numbers.Real`) The font size in pixels. N/A N/A self N/A 1 N/A property color N/A N/A self N/A N/A N/A (:class:`wand.color.Color`) The font color. N/A N/A self N/A 2 N/A property antialias N/A N/A self N/A N/A N/A (:class:`bool`) Whether to apply antialiasing (``True``)
        or not (``False``).

         N/A N/A self N/A 3 N/A property __repr__ N/A N/A self N/A N/A N/A N/A N/A {0.__module__}.{0.__name__}({1}) format N/A type self N/A N/A tuple __repr__ self N/A N/A