//
//  NSString+TextDirection.h
//  GlyphsCore
//
//  Created by Florian Pircher on 23.10.22.
//  Copyright © 2022 schriftgestaltung.de. All rights reserved.
//

NS_ASSUME_NONNULL_BEGIN

@interface NSString (TextDirection)

/// Performs a simplified implementation of the *Unicode Standard Annex #9 – Unicode Bidirectional Algorithm*.
///
/// Returns `NSWritingDirectionNatural` if there is no inherent writing direction.
///
/// > Note: The same can be accomplished on an array of layers using `+[GSLayoutManager inherentWritingDirectionOfLayers:]`.
- (NSWritingDirection)inherentWritingDirection;

@end

NS_ASSUME_NONNULL_END
