This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

32 lines
524 B
Mathematica
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
// 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