Skip to content

Commit

Permalink
Fixes a couple spot commands that did not handle file names with spac…
Browse files Browse the repository at this point in the history
…es correctly (issue #36)
  • Loading branch information
miguelsousa committed Nov 27, 2015
1 parent bb8c224 commit 3a0b405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FDK/Tools/SharedData/FDKScripts/MakeOTF.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"""

__usage__ = """
makeotf v2.0.90 Nov 19 2015
makeotf v2.0.91 Nov 26 2015
-f <input font> Specify input font path. Default is 'font.pfa'.
-o <output font> Specify output font path. Default is
'<PostScript-Name>.otf'.
Expand Down Expand Up @@ -1721,7 +1721,7 @@ def convertFontIfNeeded(makeOTFParams):
raise MakeOTFTXError
makeOTFParams.srcIsUFO = 1
else:
commandString = "spot %s 2>&1" % (filePath)
commandString = "spot \"%s\" 2>&1" % (filePath)
report = FDKUtils.runShellCmd(commandString)
if ("sfnt" in report):
needsConversion = 1
Expand Down Expand Up @@ -1861,7 +1861,7 @@ def checkFSTypeValue(FSType, outputPath):

def getSourceGOADBData(inputFilePath):
# First, get the Unicode mapping from the TTF cmap table.
command = "spot -t cmap=7 %s 2>&1" % (inputFilePath)
command = "spot -t cmap=7 \"%s\" 2>&1" % (inputFilePath)
report = FDKUtils.runShellCmd(command)
glyphList = re.findall("[\n\t]\[(....+)\]=<([^>]+)>", report)
hasDoubleMapping = 0
Expand Down

0 comments on commit 3a0b405

Please sign in to comment.