Skip to content

Commit

Permalink
Add language, font metrics font (#55)
Browse files Browse the repository at this point in the history
* Add Font, FontMetrics etc, update ffi gen for new headers

* Ensure private defs for PangoAttribute and PangoColor flow thru

* Add Font, FontMetrics etc, update ffi gen for new headers

* Ensure private defs for PangoAttribute and PangoColor flow thru

* Lint fixes

* Additional lint fixes

* Git git merge issue in pangocffi/context.py

* Fix missing merge fix

---------

Co-authored-by: Leif Gehrmann <leif.gehrmann@gmail.com>
  • Loading branch information
georgeharker and leifgehrmann authored Jun 19, 2024
1 parent 82ebc95 commit 3b4c35d
Show file tree
Hide file tree
Showing 8 changed files with 538 additions and 158 deletions.
9 changes: 8 additions & 1 deletion docs/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,17 @@ ________________

.. autoclass:: FontDescription

Font
____

.. autoclass:: Font

API not fully implemented yet.

Font Metrics
____________

API not implemented yet.
.. autoclass:: FontMetrics

Font Map
________
Expand Down
3 changes: 3 additions & 0 deletions pangocffi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def _dlopen(dl_name: str, generated_ffi, names: List[str]):
from .enums import * # noqa
from .convert import * # noqa
from .pango_object import PangoObject # noqa
from .language import Language # noqa
from .font_metrics import FontMetrics # noqa
from .font import Font # noqa
from .font_description import FontDescription # noqa
from .rectangle import Rectangle # noqa
from .item import Item # noqa
Expand Down
Loading

0 comments on commit 3b4c35d

Please sign in to comment.