使用fontgen.py为Pebble制作自定义字体

时间:2016-11-24 16:38:26

标签: python pebble-sdk

我使用fontgen.py(来自Pebble SDK)为Pebble制作自定义字体,但它引发错误:

Traceback (most recent call last):
  File "fontgen.py", line 4, in <module>
    import freetype
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\freetype_py-1.0.2-py3.5.egg\freetype\__init__.py", line 21, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\freetype_py-1.0.2-py3.5.egg\freetype\raw.py", line 66, in <module>
  File "C:\Program Files (x86)\Python35-32\lib\ctypes\__init__.py", line 360, in __getattr__
    func = self.__getitem__(name)
  File "C:\Program Files (x86)\Python35-32\lib\ctypes\__init__.py", line 365, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'FT_Select_Size' not found

我无法解决这个问题。请帮忙。 谢谢!

0 个答案:

没有答案