-
Notifications
You must be signed in to change notification settings - Fork 17
/
UIFont+OpenSans.h
74 lines (59 loc) · 3.18 KB
/
UIFont+OpenSans.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//
// UIFont+OpenSans.h
//
// Created by Kyle Fuller on 18/02/2014
//
#import <UIKit/UIKit.h>
/// UIFont extension providing the Open Sans font
@interface UIFont (OpenSans)
/** Returns a font object for the Open Sans font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Italic font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansItalicFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Light font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansLightFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Light Italic font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansLightItalicFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans bold font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansBoldFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Bold Italic font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansBoldItalicFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Semi Bold font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansSemiBoldFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Semi Bold Italic font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansSemiBoldItalicFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Extra Bold font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansExtraBoldFontOfSize:(CGFloat)size;
/** Returns a font object for the Open Sans Extra Bold Italic font which has the specified size instead.
@param size The desired size (in points) of the new font object. This value must be greater than 0.0
@return A font object of the specified size.
*/
+ (instancetype)openSansExtraBoldItalicFontOfSize:(CGFloat)size;
@end