Home | History | Annotate | Download | only in tables

Lines Matching refs:glyphIndexArray

231 		self.glyphIndexArray = []
238 minGI = subHeader.glyphIndexArray[0]
239 for gid in subHeader.glyphIndexArray:
242 # The lowest gid in glyphIndexArray, after subtracting idDelta, must be 1.
259 gid = subHeader.glyphIndexArray[i]
261 subHeader.glyphIndexArray[i] = gid - idDelta
297 subHeader.glyphIndexArray = giList
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
318 # The index to glyphIndex mapping is a subrange of the glyphIndexArray. You find the start of the subrange by
326 # The subrange of the glyphIndexArray starting at 0x0252 bytes from the idRangeOffset word is:
327 # [glyphIndexArray index], [subrange array index] = glyphIndex
348 gi = subHeader.glyphIndexArray[offsetIndex]
359 gi = subHeader.glyphIndexArray[offsetIndex]
458 assert (subHeader.entryCount == len(subHeader.glyphIndexArray)), "Error - subhead entry count does not match len of glyphID subrange."
463 subHeader.glyphIndexArray.append(gid)
471 subHeader.glyphIndexArray.append(notdefGI)
472 subHeader.glyphIndexArray.append(gid)
490 # idRangeOffset word of this subHeader. We can safely point to the first entry in the GlyphIndexArray,
491 # since the first subrange of the GlyphIndexArray is for subHeader 0, which always starts with
501 if prevSubhead.glyphIndexArray == subHeader.glyphIndexArray: # use the glyphIndexArray subarray
503 subHeader.glyphIndexArray = []
514 length = length + len(subhead.glyphIndexArray)*2 # We can't use subhead.entryCount, as some of the subhead may share subArrays.
521 for gi in subhead.glyphIndexArray:
550 #uint16 glyphIndexArray[variable] # Glyph index array
662 glyphIndexArray = allCodes[segCount:]
663 lenGIArray = len(glyphIndexArray)
683 if glyphIndexArray[index] != 0: # if not missing glyph
684 glyphID = glyphIndexArray[index] + delta
761 glyphIndexArray = []
772 idRangeOffset.append(2 * (len(endCode) + len(glyphIndexArray) - i))
773 glyphIndexArray.extend(indices)
784 restArray = array.array("H", idRangeOffset + glyphIndexArray)
826 glyphIndexArray = array.array("H")
827 glyphIndexArray.fromstring(data[:2 * int(entryCount)])
829 glyphIndexArray.byteswap()
834 lenArray = len(glyphIndexArray)
838 names = list(map(operator.getitem, [glyphOrder]*lenArray, glyphIndexArray ))
841 names = list(map(getGlyphName, glyphIndexArray ))
854 glyphIndexArray = array.array("H", valueList)
856 glyphIndexArray.byteswap()
857 data = glyphIndexArray.tostring()