Home
last modified time | relevance | path

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

/external/fonttools/Lib/fontTools/misc/
DxmlWriter.py14 def __init__(self, fileOrPath, indentwhite=INDENT, idlefunc=None, encoding="utf_8", argument
18 if fileOrPath == '-':
19 fileOrPath = sys.stdout
20 if not hasattr(fileOrPath, "write"):
21 self.filename = fileOrPath
22 self.file = open(fileOrPath, "wb")
27 self.file = fileOrPath
DxmlReader.py20 def __init__(self, fileOrPath, ttFont, progress=None, quiet=None, contentOnly=False): argument
21 if fileOrPath == '-':
22 fileOrPath = sys.stdin
23 if not hasattr(fileOrPath, "read"):
24 self.file = open(fileOrPath, "rb")
28 self.file = fileOrPath
DmacRes.py19 def __init__(self, fileOrPath): argument
21 if hasattr(fileOrPath, 'read'):
22 self.file = fileOrPath
26 self.file = self.openResourceFork(fileOrPath)
31 self.file = self.openDataFork(fileOrPath)
/external/fonttools/Tests/misc/
DxmlReader_test.py18 def __init__(self, fileOrPath, ttFont, progress=None): argument
20 fileOrPath, ttFont, progress)
51 def __init__(self, fileOrPath, ttFont, progress=None): argument
53 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.py70 def saveXML(self, fileOrPath, newlinestr=None, writeVersion=True, **kwargs): argument
73 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)