/Engine/Source/Runtime/Slate/Public/Framework/Text/TextLayout.h
Calculates the text direction for each line based upon the current shaping method and document flow direction When changing the shaping method, or document flow direction, all the lines need to be dirtied (see DirtyAllLineModels(ELineModelDirtyState::TextBaseDirection))
void CalculateTextDirection()