Home
last modified time | relevance | path

Searched refs:sfntVersion (Results 1 – 17 of 17) sorted by relevance

/external/fonttools/Lib/fontTools/misc/
DxmlReader.py98 sfntVersion = attrs.get("sfntVersion")
99 if sfntVersion is not None:
100 if len(sfntVersion) != 4:
101 sfntVersion = safeEval('"' + sfntVersion + '"')
102 self.ttFont.sfntVersion = sfntVersion
/external/fonttools/Snippets/
Dwoff2_decompress.py14 sfntVersion = f.read(4)
15 assert len(sfntVersion) == 4, "not enough data"
16 ext = '.ttf' if sfntVersion == b"\x00\x01\x00\x00" else ".otf"
Dotf2ttf.py43 assert ttFont.sfntVersion == "OTTO"
80 ttFont.sfntVersion = "\000\001\000\000"
/external/fonttools/Lib/fontTools/ttLib/
Dsfnt.py36 sfntVersion = Tag(infile.read(4))
38 if sfntVersion == "wOF2":
53 self.sfntVersion = self.file.read(4)
55 if self.sfntVersion == b"ttcf":
66 elif self.sfntVersion == b"wOFF":
78 self.sfntVersion = Tag(self.sfntVersion)
80 if self.sfntVersion not in ("\x00\x01\x00\x00", "OTTO", "true"):
210 def __init__(self, file, numTables, sfntVersion="\000\001\000\000", argument
214 self.sfntVersion = Tag(sfntVersion)
DttFont.py22 sfntVersion="\000\001\000\000", flavor=None, checkChecksums=False, argument
104 self.sfntVersion = sfntVersion
141 self.sfntVersion = self.reader.sfntVersion
208 writer = SFNTWriter(file, numTables, self.sfntVersion, self.flavor, self.flavorData)
255 writer.begintag("ttFont", sfntVersion=repr(tostr(self.sfntVersion))[1:-1],
258 writer.begintag("ttFont", sfntVersion=repr(tostr(self.sfntVersion))[1:-1])
988 …writer = SFNTWriter(outFile, len(reader.tables), reader.sfntVersion, reader.flavor, reader.flavorD…
Dwoff2.py138 def __init__(self, file, numTables, sfntVersion="\000\001\000\000", argument
148 self.sfntVersion = Tag(sfntVersion)
189 if self.sfntVersion in ("\x00\x01\x00\x00", "true"):
191 elif self.sfntVersion == "OTTO":
234 if self.sfntVersion == "OTTO":
/external/fonttools/Tests/ttLib/tables/
DC_F_F_test.py33 font = TTFont(sfntVersion='OTTO')
42 font = TTFont(sfntVersion='OTTO')
D_h_h_e_a_test.py99 self.font = TTFont(sfntVersion='OTTO')
135 self.font = TTFont(sfntVersion='OTTO')
D_g_l_y_f_test.py205 font = TTFont(sfntVersion="\x00\x01\x00\x00")
220 font = TTFont(sfntVersion="\x00\x01\x00\x00")
D_v_h_e_a_test.py112 self.font = TTFont(sfntVersion='OTTO')
188 self.font = TTFont(sfntVersion='OTTO')
DC_F_F__2_test.py52 font = TTFont(sfntVersion='OTTO')
/external/fonttools/Tests/ttLib/
Dwoff2_test.py167 if font.sfntVersion in ("\x00\x01\x00\x00", "true"):
215 outfile, len(reader.tables), reader.sfntVersion, reader.flavor, reader.flavorData)
380 self.writer = WOFF2Writer(BytesIO(), self.numTables, self.font.sfntVersion)
452 self.writer.sfntVersion = 'ZZZZ'
/external/fonttools/Lib/fontTools/
DfontBuilder.py489 self.font.sfntVersion = "OTTO"
530 self.font.sfntVersion = "OTTO"
/external/fonttools/Lib/fontTools/subset/
D__init__.py2812 ext = ".ttf" if font.sfntVersion == "\0\1\0\0" else ".otf"
/external/fonttools/
DNEWS.rst263 or the value of ``TTFont.sfntVersion`` (d7ac0ad).
DPKG-INFO680 or the value of ``TTFont.sfntVersion`` (d7ac0ad).
/external/fonttools/Lib/fonttools.egg-info/
DPKG-INFO680 or the value of ``TTFont.sfntVersion`` (d7ac0ad).