Home
last modified time | relevance | path

Searched refs:fileOrPath (Results 1 – 6 of 6) sorted by relevance

/external/fonttools/Lib/fontTools/misc/
DxmlWriter.py13 def __init__(self, fileOrPath, indentwhite=INDENT, idlefunc=None, encoding="utf_8", argument
17 if fileOrPath == '-':
18 fileOrPath = sys.stdout
19 if not hasattr(fileOrPath, "write"):
20 self.filename = fileOrPath
21 self.file = open(fileOrPath, "wb")
26 self.file = fileOrPath
DxmlReader.py18 def __init__(self, fileOrPath, ttFont, progress=None, quiet=None, contentOnly=False): argument
19 if fileOrPath == '-':
20 fileOrPath = sys.stdin
21 if not hasattr(fileOrPath, "read"):
22 self.file = open(fileOrPath, "rb")
26 self.file = fileOrPath
DmacRes.py26 def __init__(self, fileOrPath): argument
34 if hasattr(fileOrPath, 'read'):
35 self.file = fileOrPath
39 self.file = self.openResourceFork(fileOrPath)
44 self.file = self.openDataFork(fileOrPath)
/external/fonttools/Tests/misc/
DxmlReader_test.py16 def __init__(self, fileOrPath, ttFont, progress=None): argument
18 fileOrPath, ttFont, progress)
49 def __init__(self, fileOrPath, ttFont, progress=None): argument
51 fileOrPath, ttFont, progress)
/external/fonttools/Lib/fontTools/ttLib/
DttCollection.py89 def saveXML(self, fileOrPath, newlinestr="\n", writeVersion=True, **kwargs): argument
92 writer = xmlWriter.XMLWriter(fileOrPath, newlinestr=newlinestr)
DttFont.py235 def saveXML(self, fileOrPath, newlinestr="\n", **kwargs): argument
244 writer = xmlWriter.XMLWriter(fileOrPath, newlinestr=newlinestr)
336 def importXML(self, fileOrPath, quiet=None): argument
352 reader = xmlReader.XMLReader(fileOrPath, self)