Lines Matching refs:range

27 		for i in range(numSubTables):
190 charCodes = list(range(lenArray))
202 assert charCodes == list(range(256))
258 for i in range(subHeader.entryCount):
287 for i in range(maxSubHeaderindex + 1):
307 # Each subheader references a range in the glyphIndexArray whose length is entryCount.
308 # The range in glyphIndexArray referenced by a sunheader may overlap with the range in glyphIndexArray
311 # that maps the entire range of glyphID values to glyphIndex 0, e.g notdef:
339 for firstByte in range(256):
357 for offsetIndex in range(subHeader.entryCount):
418 # which defines all char codes in its range to map to notdef) unless proven otherwise.
422 subHeaderKeys = [ kEmptyTwoCharCodeRange for x in range(256)] # list of indices into subHeaderList.
454 for index in range(subHeader.entryCount):
470 for i in range(codeDiff):
486 for index in range(256):
496 for index in range(subheadRangeLen):
499 for j in range(index):
553 # Try to split a range of character codes into subranges with consecutive
567 for code in range(startCode + 1, endCode + 1):
593 break # the whole range, we're fine
668 for i in range(len(startCode) - 1): # don't do 0xffff!
675 rangeCharCodes = list(range(startCode[i], endCode[i] + 1))
682 assert (index < lenGIArray), "In format 4 cmap, range (%d), the calculated index (%d) into the glyph index array is not less than the length of the array (%d) !" % (i, index, lenGIArray)
740 # each range in more ranges of consecutive/not consecutive glyph IDs.
762 for i in range(len(endCode)-1): # skip the closing codes (0xffff)
764 for charCode in range(startCode[i], endCode[i] + 1):
766 if (indices == list(range(indices[0], indices[0] + len(indices)))):
835 charCodes = list(range(firstCode, firstCode + lenArray))
850 codes = list(range(codes[0], codes[-1] + 1))
911 for i in range(self.nGroups):
915 charCodes.extend(list(range(startCharCode, endCharCode +1)))
970 for index in range(maxIndex):
1028 return list(range(startingGlyph, startingGlyph + numberOfGlyphs))
1077 for n in range(self.numVarSelectorRecords):
1085 for r in range(numValues):
1090 baseUVList = list(range(firstBaseUV, firstBaseUV+cnt))
1103 for r in range(numRecs):