Searched refs:fileOrPath (Results 1 – 6 of 6) sorted by relevance
/external/fonttools/Lib/fontTools/misc/ |
D | xmlWriter.py | 13 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
|
D | xmlReader.py | 18 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
|
D | macRes.py | 26 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/ |
D | xmlReader_test.py | 16 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/ |
D | ttCollection.py | 89 def saveXML(self, fileOrPath, newlinestr="\n", writeVersion=True, **kwargs): argument 92 writer = xmlWriter.XMLWriter(fileOrPath, newlinestr=newlinestr)
|
D | ttFont.py | 235 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)
|