Add setLineDirection
Add direction to lineInfo
Use line.direction in bidiOrdering