Searched refs:TTLibError (Results 1 – 25 of 38) sorted by relevance
12
/external/fonttools/Lib/fontTools/ttLib/ |
D | woff2.py | 10 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 …]
|
D | sfnt.py | 18 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 …]
|
D | macUtils.py | 33 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__.py | 52 class TTLibError(Exception): pass class
|
/external/fonttools/Tests/ttLib/ |
D | woff2_test.py | 71 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/ |
D | sbixGlyph.py | 41 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)
|
D | sbixStrike.py | 36 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.py | 6 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.py | 5 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.py | 64 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.py | 7 from fontTools.ttLib import TTLibError 62 raise TTLibError("unsupported 'avar' version %d" % majorVersion)
|
D | _p_o_s_t.py | 44 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.py | 36 raise ttLib.TTLibError("not enough '%s' table data" % self.tableTag) 105 raise ttLib.TTLibError(
|
D | V_D_M_X_.py | 100 raise ttLib.TTLibError( 130 raise ttLib.TTLibError(
|
D | _f_v_a_r.py | 6 from fontTools.ttLib import TTLibError 76 raise TTLibError("unsupported 'fvar' version %04x" % header["version"])
|
D | C_F_F_.py | 32 raise ttLib.TTLibError("illegal use of getGlyphOrder()")
|
D | DefaultTable.py | 36 raise ttLib.TTLibError("can't handle '%s' element" % name)
|
D | O_S_2f_2.py | 121 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.py | 124 from fontTools.ttLib import TTLibError 125 raise TTLibError(
|
/external/fonttools/Tests/ttLib/tables/ |
D | _a_v_a_r_test.py | 6 from fontTools.ttLib import TTLibError 38 self.assertRaises(TTLibError, avar.decompile, deHexStr("02 01 03 06 00 00 00 00"), font)
|
D | T_S_I__1_test.py | 6 from fontTools.ttLib import TTFont, TTLibError 104 with pytest.raises(TTLibError) as excinfo:
|
D | _h_m_t_x_test.py | 6 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.py | 5 from fontTools.ttLib import TTFont, newTable, TTLibError 240 … with self.assertRaisesRegex(TTLibError, "glyph '.' contains a recursive component reference"):
|
D | _t_r_a_k_test.py | 5 from fontTools.ttLib import TTFont, TTLibError 212 with self.assertRaisesRegex(TTLibError, 'entries must specify the same sizes'):
|
/external/fonttools/Lib/fontTools/ |
D | ttx.py | 91 from fontTools.ttLib import TTFont, TTLibError 409 except TTLibError as e:
|
12