Home
last modified time | relevance | path

Searched refs:TTLibError (Results 1 – 25 of 38) sorted by relevance

12

/external/fonttools/Lib/fontTools/ttLib/
Dwoff2.py10 from fontTools.ttLib import (TTFont, TTLibError, getTableModule, getTableClass,
44 raise TTLibError("Not a WOFF2 font (bad signature)")
50 raise TTLibError('Not a WOFF2 font (not enough data)')
67 raise TTLibError(
74 raise TTLibError("reported 'length' doesn't match the actual file size")
94 raise TTLibError("transform for table '%s' is unknown" % tag)
127 raise TTLibError(
168 raise TTLibError("cannot rewrite '%s' table" % tag)
187 …raise TTLibError("wrong number of tables; expected %d, found %d" % (self.numTables, len(self.table…
194 raise TTLibError("Not a TrueType or OpenType font (bad sfntVersion)")
[all …]
Dsfnt.py18 from fontTools.ttLib import TTLibError
59 raise TTLibError("specify a font number between 0 and %d (inclusive)" % (numFonts - 1))
64 raise TTLibError("Not a Font Collection (not enough data)")
71 raise TTLibError("Not a WOFF font (not enough data)")
76 raise TTLibError("Not a TrueType or OpenType font (not enough data)")
81 raise TTLibError("Not a TrueType or OpenType font (bad sfntVersion)")
246 raise TTLibError("cannot rewrite '%s' table" % tag)
253 raise TTLibError("cannot rewrite '%s' table" % tag)
289 raise TTLibError("wrong number of tables; expected %d, found %d" % (self.numTables, len(tables)))
598 raise TTLibError("Not a Font Collection (not enough data)")
[all …]
DmacUtils.py33 raise ttLib.TTLibError("no fonts found in file '%s'" % path)
49 raise ttLib.TTLibError("sfnt resource not found: %s" % res_name_or_index)
D__init__.py52 class TTLibError(Exception): pass class
/external/fonttools/Tests/ttLib/
Dwoff2_test.py71 with self.assertRaisesRegex(ttLib.TTLibError, 'bad signature'):
76 with self.assertRaisesRegex(ttLib.TTLibError, 'not enough data'):
84 with self.assertRaises((brotli.error, ttLib.TTLibError)):
90 with self.assertRaisesRegex(ttLib.TTLibError, 'unexpected size for decompressed'):
100 ttLib.TTLibError, "doesn't match the actual file size"):
124 with self.assertRaisesRegex(ttLib.TTLibError, 'transform for table .* unknown'):
155 ttLib.TTLibError, "'loca' table doesn't match original size"):
237 with self.assertRaisesRegex(ttLib.TTLibError, "can't read table 'flags'"):
242 with self.assertRaisesRegex(ttLib.TTLibError, "can't read table 'tag'"):
246 with self.assertRaisesRegex(ttLib.TTLibError, "bits 6-7 are reserved"):
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DsbixGlyph.py41 raise ttLib.TTLibError("Glyph.graphicType must not be longer than 4 characters.")
50 raise ttLib.TTLibError("No table data to decompile")
55 raise ttLib.TTLibError("Glyph header too short.")
73 raise ttLib.TTLibError("Can't compile Glyph without glyph name")
119 raise ttLib.TTLibError("can't handle '%s' element" % name)
DsbixStrike.py36 raise ttLib.TTLibError
39 raise(ttLib.TTLibError, "Strike header too short: Expected %x, got %x.") \
127 raise ttLib.TTLibError("Glyph must have a glyph name.")
150 raise ttLib.TTLibError("can't handle '%s' element" % name)
D_t_r_a_k.py6 from fontTools.ttLib import TTLibError
164 raise TTLibError('not enough data to decompile TrackData header')
174 raise TTLibError('not enough data to decompile TrackData size subtable')
183 raise TTLibError('not enough data to decompile TrackTableEntry record')
190 raise TTLibError('not enough data to decompile per-size track values')
222 raise TTLibError(
D_m_e_t_a.py5 from fontTools.ttLib import TTLibError
37 raise TTLibError("unsupported 'meta' version %d" %
99 raise TTLibError("can't handle '%s' element" % name)
D_s_b_i_x.py64 raise ttLib.TTLibError("Pixel 'ppem' must be unique for each Strike")
112 raise ttLib.TTLibError("can't handle '%s' element" % name)
D_a_v_a_r.py7 from fontTools.ttLib import TTLibError
62 raise TTLibError("unsupported 'avar' version %d" % majorVersion)
D_p_o_s_t.py44 raise ttLib.TTLibError("'post' table format %f not supported" % self.formatType)
58 raise ttLib.TTLibError("'post' table format %f not supported" % self.formatType)
67 raise ttLib.TTLibError("illegal use of getGlyphOrder()")
D_h_m_t_x.py36 raise ttLib.TTLibError("not enough '%s' table data" % self.tableTag)
105 raise ttLib.TTLibError(
DV_D_M_X_.py100 raise ttLib.TTLibError(
130 raise ttLib.TTLibError(
D_f_v_a_r.py6 from fontTools.ttLib import TTLibError
76 raise TTLibError("unsupported 'fvar' version %04x" % header["version"])
DC_F_F_.py32 raise ttLib.TTLibError("illegal use of getGlyphOrder()")
DDefaultTable.py36 raise ttLib.TTLibError("can't handle '%s' element" % name)
DO_S_2f_2.py121 raise ttLib.TTLibError("unknown format for OS/2 table: version %s" % self.version)
157 raise ttLib.TTLibError("unknown format for OS/2 table: version %s" % self.version)
D_k_e_r_n.py124 from fontTools.ttLib import TTLibError
125 raise TTLibError(
/external/fonttools/Tests/ttLib/tables/
D_a_v_a_r_test.py6 from fontTools.ttLib import TTLibError
38 self.assertRaises(TTLibError, avar.decompile, deHexStr("02 01 03 06 00 00 00 00"), font)
DT_S_I__1_test.py6 from fontTools.ttLib import TTFont, TTLibError
104 with pytest.raises(TTLibError) as excinfo:
D_h_m_t_x_test.py6 from fontTools.ttLib import TTFont, newTable, TTLibError
70 with self.assertRaisesRegex(TTLibError, msg):
169 with self.assertRaisesRegex(TTLibError, "negative advance"):
D_g_l_y_f_test.py5 from fontTools.ttLib import TTFont, newTable, TTLibError
240 … with self.assertRaisesRegex(TTLibError, "glyph '.' contains a recursive component reference"):
D_t_r_a_k_test.py5 from fontTools.ttLib import TTFont, TTLibError
212 with self.assertRaisesRegex(TTLibError, 'entries must specify the same sizes'):
/external/fonttools/Lib/fontTools/
Dttx.py91 from fontTools.ttLib import TTFont, TTLibError
409 except TTLibError as e:

12