2014-11-24 21:51:43 +01:00
|
|
|
//
|
2019-02-14 22:20:29 +01:00
|
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
2014-11-24 21:51:43 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2018-01-25 19:53:39 +01:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2014-11-24 21:51:43 +01:00
|
|
|
@interface UIFont (OWS)
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
+ (UIFont *)ows_thinFontWithSize:(CGFloat)size;
|
2014-11-24 21:51:43 +01:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
+ (UIFont *)ows_lightFontWithSize:(CGFloat)size;
|
2014-11-24 21:51:43 +01:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
+ (UIFont *)ows_regularFontWithSize:(CGFloat)size;
|
2014-11-24 21:51:43 +01:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
+ (UIFont *)ows_mediumFontWithSize:(CGFloat)size;
|
2014-12-06 19:26:01 +01:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
+ (UIFont *)ows_boldFontWithSize:(CGFloat)size;
|
2014-11-24 21:51:43 +01:00
|
|
|
|
2019-03-08 06:05:58 +01:00
|
|
|
+ (UIFont *)ows_monospacedDigitFontWithSize:(CGFloat)size;
|
|
|
|
|
2017-03-14 21:01:12 +01:00
|
|
|
#pragma mark - Icon Fonts
|
|
|
|
|
|
|
|
+ (UIFont *)ows_fontAwesomeFont:(CGFloat)size;
|
|
|
|
+ (UIFont *)ows_dripIconsFont:(CGFloat)size;
|
|
|
|
+ (UIFont *)ows_elegantIconsFont:(CGFloat)size;
|
2015-12-26 17:27:27 +01:00
|
|
|
|
2017-03-14 21:01:12 +01:00
|
|
|
#pragma mark - Dynamic Type
|
2015-12-26 17:27:27 +01:00
|
|
|
|
2018-04-06 22:28:34 +02:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle1Font;
|
2018-04-04 03:59:19 +02:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle2Font;
|
2018-04-06 22:28:34 +02:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle3Font;
|
2018-04-04 03:59:19 +02:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeHeadlineFont;
|
2018-04-06 22:28:34 +02:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeBodyFont;
|
2018-07-09 21:28:14 +02:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeSubheadlineFont;
|
2018-04-06 22:28:34 +02:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeFootnoteFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeCaption1Font;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeCaption2Font;
|
|
|
|
|
2019-02-14 22:20:29 +01:00
|
|
|
#pragma mark - Dynamic Type Clamped
|
|
|
|
|
2019-02-15 20:19:12 +01:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeLargeTitle1ClampedFont;
|
2019-02-14 22:20:29 +01:00
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle1ClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle2ClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle3ClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeHeadlineClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeBodyClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeSubheadlineClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeFootnoteClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeCaption1ClampedFont;
|
|
|
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeCaption2ClampedFont;
|
|
|
|
|
2018-04-06 22:28:34 +02:00
|
|
|
#pragma mark - Styles
|
|
|
|
|
|
|
|
- (UIFont *)ows_italic;
|
2018-04-10 19:02:33 +02:00
|
|
|
- (UIFont *)ows_bold;
|
2018-04-16 18:39:11 +02:00
|
|
|
- (UIFont *)ows_mediumWeight;
|
2019-03-28 13:37:23 +01:00
|
|
|
- (UIFont *)ows_monospaced;
|
2015-12-26 17:27:27 +01:00
|
|
|
|
2014-11-24 21:51:43 +01:00
|
|
|
@end
|
2018-01-25 19:53:39 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|