1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
Fonts
=====
.. autofunction:: imlib2.auto_set_font_path
.. autofunction:: imlib2.add_font_path
.. autofunction:: imlib2.load_font
.. autofunction:: imlib2.get_font_style_geometry
.. _textstyles:
Text Styles
-----------
These constants are used with :meth:`imlib2.Image.draw_text` and
:meth:`imlib2.Font.set_style`.
.. attribute:: imlib2.TEXT_STYLE_PLAIN
No special styling.
.. attribute:: imlib2.TEXT_STYLE_SHADOW
Draw text with a lower-right 1-pixel shadow. The shadow color is specified
by the *shadow* attribute.
.. attribute:: imlib2.TEXT_STYLE_SOFT_SHADOW
Draw text with a lower-right blurred 5-pixel shadow, offset up and left by 1
pixel. The shadow color is specified by the *shadow* attribute.
.. attribute:: imlib2.TEXT_STYLE_FAR_SHADOW
Draw text with a lower-right 2-pixel shadow. The shadow color is specified
by the *shadow* attribute.
.. attribute:: imlib2.TEXT_STYLE_FAR_SOFT_SHADOW
Draw text with a lower-right blurred 5-pixel shadow. The shadow color is
specified by the *shadow* attribute.
.. attribute:: imlib2.TEXT_STYLE_OUTLINE
Draw text with a 1-pixel outline. The outline color is specified by the
*outline* attribute.
.. attribute:: imlib2.TEXT_STYLE_OUTLINE_SHADOW
Draw text with a 1-pixel outline and a lower-right 1-pixel shadow. The
outline and shadow and colors are specified by the *outline* and *shadow*
attributes respectively.
.. attribute:: imlib2.TEXT_STYLE_SOFT_OUTLINE
Draw text with a blurred 2-pixel outline. The outline color is specified by
the *outline* attribute.
.. attribute:: imlib2.TEXT_STYLE_OUTLINE_SOFT_SHADOW
Draw text with a 1-pixel outline and a lower-right blurred 5-pixel shadow.
The outline and shadow and colors are specified by the *outline* and
*shadow* attributes respectively.
.. attribute:: imlib2.TEXT_STYLE_GLOW
Draw text with a double outline. The outer and inner outline colors are
specified by the *glow* and *glow2* attributes respectively.
Font Objects
------------
.. kaaclass:: imlib2.Font
:synopsis:
.. automethods::
.. autoproperties::
.. autosignals::
|