Lines Matching refs:triplets
759 triplets = array.array('B', self.glyphStream)
760 nTriplets = len(triplets)
783 dy = withSign(flag, ((flag & 14) << 7) + triplets[tripletIndex])
785 dx = withSign(flag, (((flag - 10) & 14) << 7) + triplets[tripletIndex])
789 b1 = triplets[tripletIndex]
794 dx = withSign(flag, 1 + ((b0 // 12) << 8) + triplets[tripletIndex])
796 1 + (((b0 % 12) >> 2) << 8) + triplets[tripletIndex + 1])
798 b2 = triplets[tripletIndex + 1]
799 dx = withSign(flag, (triplets[tripletIndex] << 4) + (b2 >> 4))
801 ((b2 & 0x0f) << 8) + triplets[tripletIndex + 2])
804 (triplets[tripletIndex] << 8) + triplets[tripletIndex + 1])
806 (triplets[tripletIndex + 2] << 8) + triplets[tripletIndex + 3])
872 triplets = array.array('B')
885 triplets.append(absY & 0xff)
888 triplets.append(absX & 0xff)
891 triplets.append((((absX - 1) & 0xf) << 4) | ((absY - 1) & 0xf))
894 triplets.append((absX - 1) & 0xff)
895 triplets.append((absY - 1) & 0xff)
898 triplets.append(absX >> 4)
899 triplets.append(((absX & 0xf) << 4) | (absY >> 8))
900 triplets.append(absY & 0xff)
903 triplets.append(absX >> 8)
904 triplets.append(absX & 0xff)
905 triplets.append(absY >> 8)
906 triplets.append(absY & 0xff)
909 self.glyphStream += triplets.tostring()