Searched refs:bytechr (Results 1 – 20 of 20) sorted by relevance
/external/fonttools/Lib/fontTools/t1Lib/ |
D | __init__.py | 185 if f.read(1) != bytechr(128): 233 res = Res.Resource(bytechr(code) + '\0' + chunk[:LWFNCHUNKSIZE - 2]) 237 res = Res.Resource(bytechr(5) + '\0') 250 f.write(bytechr(128) + bytechr(code)) 253 f.write(bytechr(128) + bytechr(3)) 361 s += bytechr((long & (0xff << (i * 8))) >> i * 8)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | TupleVariation.py | 210 result = [bytechr(numPoints)] 212 result = [bytechr((numPoints >> 8) | 0x80) + bytechr(numPoints & 0xff)] 232 run.write(bytechr(delta)) 234 run.write(bytechr(delta >> 8)) 235 run.write(bytechr(delta & 0xff)) 240 runHeader = bytechr(runLength - 1) 242 runHeader = bytechr((runLength - 1) | POINTS_ARE_WORDS) 348 stream.write(bytechr(DELTAS_ARE_ZERO | (runLength - 1))) 373 stream.write(bytechr(runLength - 1)) 407 stream.write(bytechr(DELTAS_ARE_WORDS | (runLength - 1)))
|
D | _h_d_m_x.py | 62 data = data + bytechr(ppem) + bytechr(max(widths.values())) 65 data = data + bytechr(width)
|
D | S_I_N_G_.py | 60 d["nameLength"] = bytechr(len(self.baseGlyphName)) 65 d["METAMD5"] += bytechr(val)
|
D | E_B_D_T_.py | 230 byteList.append(bytechr(curByte)) 256 return bytechr(result) 544 dataList.append(bytechr(newByte)) 582 self.imageData = _reverseBytes(bytesjoin(map(bytechr, ordDataList)))
|
D | _p_o_s_t.py | 270 data = data + bytechr(len(s)) + tobytes(s, encoding="latin1")
|
D | _n_a_m_e.py | 369 string = bytesjoin(b'\0'+bytechr(byteord(b)) for b in string[1:])
|
D | _g_l_y_f.py | 832 xPoints.append(bytechr(x)) 844 yPoints.append(bytechr(y))
|
/external/fonttools/Tests/ttLib/tables/ |
D | _m_o_r_x_test.py | 990 bytechr(flags << 4), 1042 bytechr(0x8A), bytechr(0xBC), bytechr(0xDE), 1067 bytechr(66),
|
/external/fonttools/Lib/fontTools/misc/ |
D | psCharStrings.py | 172 fourByteOp = bytechr(29) 174 fourByteOp = bytechr(255) 179 def encodeInt(value, fourByteOp=fourByteOp, bytechr=bytechr, argument 182 code = bytechr(value + 139) 185 code = bytechr((value >> 8) + 247) + bytechr(value & 0xFF) 188 code = bytechr((value >> 8) + 251) + bytechr(value & 0xFF) 192 code = bytechr(28) + pack(">h", value) 205 code = bytechr(255) + pack(">l", value) 226 realZeroBytes = bytechr(30) + bytechr(0xf) 254 d = bytechr(30) [all …]
|
D | eexec.py | 12 return bytechr(plain), R 18 return bytechr(cipher), R
|
D | textTools.py | 26 data.append(bytechr(int(hexdata[i:i+2], 16)))
|
D | py23.py | 99 bytechr = chr variable 103 def bytechr(n): function
|
D | psLib.py | 92 char = bytechr(byteord(buf[pos]))
|
/external/fonttools/Lib/fontTools/cffLib/ |
D | __init__.py | 1002 file.write(bytechr(value)) 1014 return bytechr(value) 1036 op = bytechr(op[0]) + bytechr(op[1]) 1038 op = bytechr(op) 2043 data.append(bytechr(blendOp)) 2137 out.append(bytechr(blendOp))
|
/external/python/cffi/cffi/ |
D | backend_ctypes.py | 5 bytechr = chr variable 10 bytechr = lambda num: bytes([num]) function 412 source = bytechr(source & 0xFF)
|
/external/fonttools/Tests/ttLib/ |
D | woff2_test.py | 252 data = bytechr(getKnownTagIndex('loca')) # flags 261 data = bytechr(getKnownTagIndex(unknownTag)) 504 self.writer[bytechr(65 + i)*4] = b"\0" 1364 self.assertEqual(unpack255UShort(bytechr(252))[0], 252)
|
/external/python/cffi/c/ |
D | test_c.py | 22 bytechr = chr variable 38 bytechr = lambda n: bytes([n]) function 39 bitem2bchr = bytechr 1703 return bytechr(n) 2041 assert s.a1 == bytechr(40) 2456 expected[i] = bytechr(i & 0xff) 2460 buf[i] = bytechr(i & 0xff) 2480 sample = bytechr(x & 0xff) * (stop - start)
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | woff2.py | 584 data = bytechr(self.flags)
|
/external/fonttools/Lib/fontTools/feaLib/ |
D | parser.py | 1045 return bytechr(int(n, 16)).decode(encoding)
|