簡體   English   中英

fontforge python綁定與macports

[英]fontforge python bindings with macports

我在Mac OS X上,我想使用像這樣的python腳本來操作帶有fontforge的OTF。 問題是,我如何訪問fontforge? 我需要一個特殊的構建嗎?

這是我運行文件時得到的

Traceback (most recent call last):
  File "myfile.py", line 6, in <module>
    import fontforge
ImportError: No module named fontforge

(第6行是import fontforge

首先卸載您當前安裝的內容:

port uninstall fontforge

然后安裝python變種:

port install fontforge +python27

還有一個python26變種。 查看所有變種port variants fontforge

您可以使用HomeBrew獲取FontForge開發版本的python模塊:

$ brew install python
$ brew install fontforge --HEAD

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM