Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anntzer/freetypybind
https://github.com/anntzer/freetypybind
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/anntzer/freetypybind
- Owner: anntzer
- License: mit
- Created: 2018-01-15T22:10:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-01T09:31:09.000Z (almost 3 years ago)
- Last Synced: 2024-10-27T12:50:26.086Z (about 2 months ago)
- Language: C++
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
pybind11 bindings to FreeType
=============================Mostly developed for Matplotlib.
Use
---.. code-block:: python
import freetypybind as ft
face = ft.Face("/path/to/font", index=0)
face.set_char_size(pt_size=12, dpi=100)
bitmap = ft.Layout.simple("hello, world", face, ft.Load.DEFAULT).render()from matplotlib import pyplot as plt
plt.imshow(bitmap, origin="upper", cmap="gray_r")
plt.show()