def getTextComplexLoops(fontFamily, fontSize, text, yAxisPointingUpward=True):
 textComplexLoops = []
 fontReader = getFontReader(fontFamily)
 horizontalAdvanceX = 0.0
 for character in text:
  glyph = fontReader.getGlyph(character, yAxisPointingUpward)
  textComplexLoops += glyph.getSizedAdvancedLoops(fontSize, horizontalAdvanceX, yAxisPointingUpward)
  horizontalAdvanceX += glyph.horizontalAdvanceX
 return textComplexLoops

def getTextComplexLoops ( fontFamily , fontSize , text , yAxisPointingUpward = True ) : textComplexLoops = [ ] fontReader = getFontReader ( fontFamily ) horizontalAdvanceX = 0.0 for character in text : glyph = fontReader . getGlyph ( character , yAxisPointingUpward ) textComplexLoops += glyph . getSizedAdvancedLoops ( fontSize , horizontalAdvanceX , yAxisPointingUpward ) horizontalAdvanceX += glyph . horizontalAdvanceX return textComplexLoops
get text as complex loops .