Home
last modified time | relevance | path

Searched refs:fileOrPath (Results 1 – 7 of 7) 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/skqp/tools/bookmaker/
DparserCommon.cpp71 bool ParserCommon::parseFile(const char* fileOrPath, const char* suffix, OneFile oneFile) { in parseFile() argument
72 fRawFilePathDir = string(fileOrPath); in parseFile()
73 if (!sk_isdir(fileOrPath)) { in parseFile()
74 if (!this->parseFromFile(fileOrPath)) { in parseFile()
75 SkDebugf("failed to parse %s\n", fileOrPath); in parseFile()
79 SkOSFile::Iter it(fileOrPath, suffix); in parseFile()
88 SkString p = SkOSPath::Join(fileOrPath, file.c_str()); in parseFile()
/external/fonttools/Lib/fontTools/ttLib/
DttCollection.py79 def saveXML(self, fileOrPath, newlinestr=None, writeVersion=True, **kwargs): argument
82 writer = xmlWriter.XMLWriter(fileOrPath, newlinestr=newlinestr)
DttFont.py218 def saveXML(self, fileOrPath, newlinestr=None, **kwargs): argument
227 writer = xmlWriter.XMLWriter(fileOrPath, newlinestr=newlinestr)
319 def importXML(self, fileOrPath, quiet=None): argument
335 reader = xmlReader.XMLReader(fileOrPath, self)