afdko package エラー
github/afdkoから,packageブランチを落としてきた。
FDK/tools/win/pythonがないので、FDK65322からpythonフォルダをコピーした。(FDK-25-WIN.b65322)
C:\Users\m_fujii\Desktop\04_Fonts\work>fontplot ComingSoon-Regular.ttf Please re-install the FDK. The executable directory "C:\FDK\afdko-package\FDK\Tools\win" is missing the tool: < tx >. or the files referenced by the shell script is missing. C:\Users\m_fujii\Desktop\04_Fonts\work>
C:\Users\m_fujii\Desktop\04_Fonts\work>set AFDKO_EXE_PATH="C:\FDK\afdko-package\FDK\Tools\win\" AFDKO_Python="C:\FDK\afdko-package\FDK\Tools\win\Python\AFDKOPython27\python" AFDKO_Python_BIN="C:\FDK\afdko-package\FDK\Tools\win\Python\AFDKOPython27\Scripts" AFDKO_Scripts="C:\FDK\afdko-package\FDK\Tools\SharedData\FDKScripts"
proofPDFの中でエラーだな。
def CheckEnvironment(): txPath = 'tx' txError = 0 try: exe_dir, fdkSharedDataDir = FDKUtils.findFDKDirs() except FDKUtils.FDKEnvError: logMsg("Please re-install the FDK. Cannot find the FDK/Tools/SharedData directory.") raise FDKEnvironmentError command = "%s -u 2>&1" % (txPath) report = FDKUtils.runShellCmd(command) if "options" not in report: txError = 1 if txError: logMsg("Please re-install the FDK. The executable directory \"%s\" is missing the tool: < %s >." % (exe_dir, txPath )) logMsg("or the files referenced by the shell script is missing.") raise FDKEnvironmentError return txPath, fdkSharedDataDir
windows版のfontplotでエラー
C:\Users\m_fujii\Desktop\04_Fonts\work >fontplot -o aaa.pdf ComingSoon-Regular.ttf Proofing font ComingSoon-Regular.ttf. Start time: Fri Oct 13 14:01:10 2017. Traceback (most recent call last): File "C:\FDK\Tools\SharedData\FDKScripts\ 1 "ProofPDF.py",line 987, in <module> main() 2 "ProofPDF.py",line 979, in main proofMakePDF(params.rt_fileList, params, txPath) 3 "ProofPDF.py",line 929, in proofMakePDF pdfFilePath = makePDF(pdfFont, params) 4 "fontPDF.py", line 1648,in makePDF makeProofPDF(pdfFont, params, progressBarInstance) 5 "fontPDF.py", line 2264,in makeProofPDF pdfGlyph = pdfFont.getGlyph(params.rt_glyphList[gi]) 6 "fontPDF.py", line 462, in getGlyph return self.clientGetGlyph(glyphName) 7 "ttfPDF.py", line 106, in clientGetGlyph return txPDFGlyph(self, glyphName) 8 "fontPDF.py", line 588, in __init__ self.clientInitData() 9 "ttfPDF.py", line 159, in clientInitData clientGlyph.draw(pen) File "C:\FDK\Tools\win\Python\AFDKOPython27\lib\site-packages\fonttools-3.9.1-py2.7.egg\ 10 "fontTools\ttLib\__init__.py", line 758, in draw 11 "fontTools\ttLib\tables\_g_l_y_f.py", line 947, in draw 12 "fontTools\pens\basePen.py", line 195, in addComponent TypeError: 'NoneType' object has no attribute '__getitem__'続きを読む
afdko 環境
AFDKO_EXE_PATH= "C:\FDK\Tools\win\" AFDKO_Python= "C:\FDK\Tools\win\Python\AFDKOPython27\python" AFDKO_Python_BIN= "C:\FDK\Tools\win\Python\AFDKOPython27\Scripts" AFDKO_Scripts= "C:\FDK\Tools\SharedData\FDKScripts" Path= C:\FDK\Tools\win;C:\P
C:\Users\m_fujii\Desktop\04_Fonts\work >c:\FDK\Tools\SharedData\FDKScripts\ProofPDF.py Traceback (most recent call last): File "C:\FDK\Tools\SharedData\FDKScripts\ProofPDF.py", line 195, in <module> from fontTools import ttLib ImportError: No module named fontTools