TTX/Fonttools windows下安装问题 配置环境

来源:互联网 发布:单片机的加密模式 编辑:程序博客网 时间:2024/04/30 15:30

TTX/Fonttools下载文件中提供的windows安装方法太老了,根本不能安装,最新的安装方法如下,

详见:http://typophile.com/node/67406


Thanks to a lot of the comments here I managed to install TTX 2.3 on Windows.
Here's my suggestion for updated instructions on the README.txt file:

APPROACH I: Using py2exe and InnoSetup

1. Install Python 2.7 for Windows: http://www.python.org/
2. Install py2exe: http://starship.python.net/crew/theller/py2exe/
3. Install NumPy http://numpy.scipy.org/
4. Install InnoSetup 5: http://www.jrsoftware.org/
5. Download the latest released source code of TTX/FontTools at
http://sourceforge.net/projects/fonttools/
Or alternatively grab the sources from SVN:
http://fonttools.sourceforge.net/
5. Unzip the source code of TTX/FontTools into a folder.
6. In the folder where you unzipped TTX/FontTools, edit setup.py and add:
console = ["Tools/ttx"],
right after this line:
scripts = ["Tools/ttx"],
7. In the folder where you unzipped TTX/FontTools, type:
python setup.py build
python setup.py install
python setup.py py2exe --packages encodings
8. Run Inno Setup and open Windows\fonttools-win-setup.iss
9. In Inno Setup:
Edit the line:
Source: ..\dist\ttx\*.*;
to
Source: ..\dist\*.*;
And delete the line:
Source: ..\Doc\bugs.txt; DestDir: {app}; Flags: ignoreversion promptifolder
10. In Inno Setup, hit Build > Compile, then Run > Run.

The distributable TTX Windows setup executable has been saved
in the Output subfolder of the FontTools\Windows folder.


原创粉丝点击