Skip to content

Commit

Permalink
Add documentation for 2.1.0 Font changes (celiagg#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiggins authored Mar 5, 2021
1 parent b41ec08 commit dff5829
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,24 @@ be used to measure the width of a rendered string.
.. autoclass:: FontCache
:members:

.. autoclass:: Font
:members:

.. autoclass:: Rect

.. autoclass:: Transform
:members:

Fonts
~~~~~
There are two classes for representing fonts, because celiagg uses the system's
built-on font selection mechanism on Windows. The correct class for the system
is selected at runtime and available as the :class:`Font` class. One should be
aware of this when building software that runs on multiple OSes.

.. autoclass:: FreeTypeFont
:members:

.. autoclass:: Win32Font
:members:


Paint Classes
-------------
Expand Down Expand Up @@ -147,6 +157,23 @@ fill variations use the even-odd rule when filling self-intersecting curves.
* ``DrawFillStroke``
* ``DrawEofFillStroke``

FontWeight
~~~~~~~~~~

When using the :class:`Win32Font` version of :class:`Font`, this enumeration is
used to select the desired font weight.

* ``Any``
* ``Thin``
* ``ExtraLight``
* ``Light``
* ``Regular``
* ``Medium``
* ``SemiBold``
* ``Bold``
* ``ExtraBold``
* ``Heavy``

GradientSpread
~~~~~~~~~~~~~~

Expand Down

0 comments on commit dff5829

Please sign in to comment.