This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

View File

@ -0,0 +1,18 @@
require 'json'
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
Pod::Spec.new do |s|
s.name = 'UMFontInterface'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.platform = :ios, '10.0'
s.source = { git: 'https://github.com/expo/expo.git' }
s.source_files = 'UMFontInterface/**/*.{h,m}'
s.preserve_paths = 'UMFontInterface/**/*.{h,m}'
s.requires_arc = true
end

View File

@ -0,0 +1,8 @@
// Copyright 2018-present 650 Industries. All rights reserved.
#import <UMFontInterface/UMFontProcessorInterface.h>
@protocol UMFontManagerInterface
- (void)addFontProcessor:(id<UMFontProcessorInterface>)processor;
@end

View File

@ -0,0 +1,13 @@
// Copyright 2018-present 650 Industries. All rights reserved.
@protocol UMFontProcessorInterface
- (UIFont *)updateFont:(UIFont *)uiFont
withFamily:(NSString *)family
size:(NSNumber *)size
weight:(NSString *)weight
style:(NSString *)style
variant:(NSArray<NSDictionary *> *)variant
scaleMultiplier:(CGFloat)scaleMultiplier;
@end

View File

@ -0,0 +1,7 @@
// Copyright 2018-present 650 Industries. All rights reserved.
@protocol UMFontScalerInterface
- (UIFont *)scaledFont:(UIFont *)font toSize:(CGFloat)fontSize;
@end

View File

@ -0,0 +1,9 @@
// Copyright 2018-present 650 Industries. All rights reserved.
#import <UMFontInterface/UMFontScalerInterface.h>
@protocol UMFontScalersManagerInterface
- (void)registerFontScaler:(id<UMFontScalerInterface>)scaler;
@end