Home
last modified time | relevance | path

Searched refs:bytechr (Results 1 – 25 of 57) sorted by relevance

123

/dports/print/py-fonttools/fonttools-4.28.2/Lib/fontTools/t1Lib/
H A D__init__.py20 from fontTools.misc.textTools import bytechr, byteord, bytesjoin
184 if f.read(1) != bytechr(128):
232 res = Res.Resource(bytechr(code) + '\0' + chunk[:LWFNCHUNKSIZE - 2])
236 res = Res.Resource(bytechr(5) + '\0')
249 f.write(bytechr(128) + bytechr(code))
252 f.write(bytechr(128) + bytechr(3))
360 s += bytechr((long & (0xff << (i * 8))) >> i * 8)
/dports/print/py-fonttools3/fonttools-3.44.0/Lib/fontTools/t1Lib/
H A D__init__.py185 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)
/dports/print/py-fonttools/fonttools-4.28.2/Lib/fontTools/misc/
H A Deexec.py15 from fontTools.misc.textTools import bytechr, bytesjoin, byteord
22 return bytechr(plain), R
28 return bytechr(cipher), R
H A DpsCharStrings.py173 fourByteOp = bytechr(29)
175 fourByteOp = bytechr(255)
180 def encodeInt(value, fourByteOp=fourByteOp, bytechr=bytechr, argument
183 code = bytechr(value + 139)
186 code = bytechr((value >> 8) + 247) + bytechr(value & 0xFF)
189 code = bytechr((value >> 8) + 251) + bytechr(value & 0xFF)
193 code = bytechr(28) + pack(">h", value)
206 code = bytechr(255) + pack(">l", value)
227 realZeroBytes = bytechr(30) + bytechr(0xf)
255 d = bytechr(30)
[all …]
H A DtextTools.py47 data.append(bytechr(int(hexdata[i:i+2], 16)))
136 def bytechr(n): function
H A Dpy23.py11 from .textTools import Tag, bytechr, byteord, bytesjoin, strjoin, tobytes, tostr
/dports/print/py-fonttools/fonttools-4.28.2/Tests/ttLib/tables/
H A D_m_o_r_x_test.py2 from fontTools.misc.textTools import bytechr, bytesjoin, deHexStr, hexStr
987 bytechr(flags << 4),
1039 bytechr(0x8A), bytechr(0xBC), bytechr(0xDE),
1064 bytechr(66),
/dports/print/py-fonttools/fonttools-4.28.2/Lib/fontTools/ttLib/tables/
H A D_h_d_m_x.py2 from fontTools.misc.textTools import bytechr, byteord, strjoin
57 data = data + bytechr(ppem) + bytechr(max(widths.values()))
60 data = data + bytechr(width)
H A DS_I_N_G_.py2 from fontTools.misc.textTools import bytechr, byteord, tobytes, tostr, safeEval
58 d["nameLength"] = bytechr(len(self.baseGlyphName))
63 d["METAMD5"] += bytechr(val)
H A DE_B_D_T_.py2 from fontTools.misc.textTools import bytechr, byteord, bytesjoin, strjoin, safeEval, readHex, hexSt…
228 byteList.append(bytechr(curByte))
254 return bytechr(result)
542 dataList.append(bytechr(newByte))
580 self.imageData = _reverseBytes(bytesjoin(map(bytechr, ordDataList)))
H A D_p_o_s_t.py4 from fontTools.misc.textTools import bytechr, byteord, tobytes, tostr, safeEval, readHex
291 data = data + bytechr(len(s)) + tobytes(s, encoding="latin1")
/dports/print/py-fonttools3/fonttools-3.44.0/Lib/fontTools/ttLib/tables/
H A DTupleVariation.py210 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)))
H A D_h_d_m_x.py62 data = data + bytechr(ppem) + bytechr(max(widths.values()))
65 data = data + bytechr(width)
H A DS_I_N_G_.py60 d["nameLength"] = bytechr(len(self.baseGlyphName))
65 d["METAMD5"] += bytechr(val)
H A DE_B_D_T_.py230 byteList.append(bytechr(curByte))
256 return bytechr(result)
544 dataList.append(bytechr(newByte))
582 self.imageData = _reverseBytes(bytesjoin(map(bytechr, ordDataList)))
/dports/print/py-fonttools3/fonttools-3.44.0/Tests/ttLib/tables/
H A D_m_o_r_x_test.py990 bytechr(flags << 4),
1042 bytechr(0x8A), bytechr(0xBC), bytechr(0xDE),
1067 bytechr(66),
/dports/print/py-fonttools3/fonttools-3.44.0/Lib/fontTools/misc/
H A DpsCharStrings.py172 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 …]
H A Deexec.py12 return bytechr(plain), R
18 return bytechr(cipher), R
H A DtextTools.py26 data.append(bytechr(int(hexdata[i:i+2], 16)))
H A Dpy23.py99 bytechr = chr variable
103 def bytechr(n): function
/dports/devel/mercurial/mercurial-6.0/mercurial/pure/
H A Dcharencode.py41 _jsonmap.extend(pycompat.bytechr(x) for x in range(32, 127))
53 _jsonmap.extend(pycompat.bytechr(x) for x in range(128, 256))
/dports/devel/mercurial/mercurial-6.0/tests/
H A Dtest-wireproto.py93 return b''.join(pycompat.bytechr(ord(c) + 1) for c in pycompat.bytestr(s))
97 return b''.join(pycompat.bytechr(ord(c) - 1) for c in pycompat.bytestr(s))
H A Dtest-batching.py163 return b''.join(pycompat.bytechr(ord(c) + 1) for c in pycompat.bytestr(s))
167 return b''.join(pycompat.bytechr(ord(c) - 1) for c in pycompat.bytestr(s))
H A Ddrawdag.py105 pycompat.bytechr(i)
107 if pycompat.bytechr(i) not in _pipechars
/dports/devel/mercurial/mercurial-6.0/mercurial/
H A Dpycompat.py170 bytechr = struct.Struct('>B').pack variable
249 s = bytechr(s)
260 return map(bytechr, s)
426 bytechr = chr variable

123