updated TextFormatAlign to match the one in openfl library