//
//  GSFont+Completions.h
//  GlyphsCore
//
//  Created by Georg Seifert on 02.01.24.
//  Copyright © 2024 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsCore/GSFont.h>
#import <GlyphsCore/GSGlyphsInfo.h>

NS_ASSUME_NONNULL_BEGIN

@interface GSFont (Completions)

- (nullable NSArray <NSString *> *)completionsForName:(NSString *)partialName forPartialWordRange:(NSRange)charRange;

@end

@interface GSGlyphsInfo (Completions)

- (nullable NSArray <NSString *> *)completionsForName:(NSString *)partialName forPartialWordRange:(NSRange)charRange;

+ (NSRange)maxRangeForGlyphName:(NSString *)string atIndex:(NSUInteger)idx;

@end

NS_ASSUME_NONNULL_END
