def Position(self, textObject): FontManager.Position(self, textObject) # Get data vertices, texcoords = textObject._GetCompiledData() vertices = vertices.copy() # Use default algorithm to correct the vertices for alginment and angle font = self.GetFont(textObject.fontName, textObject._actualFontSize) correctVertices(textObject, vertices, font.height/TEX_SCALE) # Store textObject._SetFinalData(vertices, texcoords)
def Position(self, textObject): FontManager.Position(self, textObject) # Get data vertices, texcoords = textObject._GetCompiledData() vertices = vertices.copy() # Use default algorithm to correct the vertices for alginment and angle font = self.GetFont(textObject.fontName, textObject._actualFontSize) correctVertices(textObject, vertices, font.height / TEX_SCALE) # Store textObject._SetFinalData(vertices, texcoords)
def Position(self, textObject): """ The name is ment as a verb. The vertices are corrected for angle and alignment. """ FontManager.Position(self, textObject) # Get data vertices, texcoords = textObject._GetCompiledData() vertices = vertices.copy() # Use default algorithm to correct the vertices for alginment and angle correctVertices(textObject, vertices, textObject._xglyph.sizey) # Store textObject._SetFinalData(vertices, texcoords)