17 lines
362 B
Mathematica
17 lines
362 B
Mathematica
![]() |
// Copyright 2015-present 650 Industries. All rights reserved.
|
||
|
|
||
|
#import <EXFont/EXFontScaler.h>
|
||
|
|
||
|
#import <EXFont/EXFont.h>
|
||
|
#import <objc/runtime.h>
|
||
|
|
||
|
@implementation EXFontScaler
|
||
|
|
||
|
- (UIFont *)scaledFont:(UIFont *)font toSize:(CGFloat)fontSize
|
||
|
{
|
||
|
EXFont *exFont = objc_getAssociatedObject(font, EXFontAssocKey);
|
||
|
return [exFont UIFontWithSize:fontSize];
|
||
|
}
|
||
|
|
||
|
@end
|