You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
524 B

// Copyright 2015-present 650 Industries. All rights reserved.
#import <EXFont/EXFontManager.h>
@interface EXFontManager ()
@property (nonatomic, strong, readonly) NSMutableDictionary *registry;
@end
@implementation EXFontManager
- (instancetype)init
{
if (self = [super init]) {
_registry = [NSMutableDictionary dictionary];
}
return self;
}
- (EXFont *)fontForName:(NSString *)name
{
return _registry[name];
}
- (void)setFont:(EXFont *)font forName:(NSString *)name
{
_registry[name] = font;
}
@end