/Build.python-ftgl.20200428161725

Build a library that uses FTGL in Python.

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

ja

Build.python-ftgl

Build a library that uses FTGL in Python.

DEMO

demo demo2

Requirement

  • 2020-04-28
  • Raspbierry Pi 4 Model B Rev 1.2
  • Raspbian buster 10.0 2019-09-26 setup
  • bash 5.0.3(1)-release
  • Python 2.7.16
  • Python 3.7.3
  • freetype
  • FTGL
$ uname -a
Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux

Installation

sudo apt -y install libftgl-dev
git clone https://github.com/mugwort-rc/python-ftgl
cd python-ftgl
python setup.py build
python3 setup.py build
sudo python setup.py install
sudo python3 setup.py install

Usage

git clone https://github.com/ytyaru/Build.python-ftgl.20200428161725
cd Build.python-ftgl.20200428161725/src
./run.sh

Specify an arbitrary value for the font path.

run.sh

python example.py /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf
python3 example.py /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf

The font list acquisition command is as follows.

fc-list

Author

ytyaru

  • github
  • hatena
  • mastodon

License

This software is CC0 licensed.

CC0

The build source code is below. Thanks.