session-ios/SignalUtilitiesKit/Utilities/UIFont+OWS.h

64 lines
2.3 KiB
C
Raw Normal View History

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)
+ (UIFont *)ows_thinFontWithSize:(CGFloat)size;
2014-11-24 21:51:43 +01:00
+ (UIFont *)ows_lightFontWithSize:(CGFloat)size;
2014-11-24 21:51:43 +01:00
+ (UIFont *)ows_regularFontWithSize:(CGFloat)size;
2014-11-24 21:51:43 +01:00
+ (UIFont *)ows_mediumFontWithSize:(CGFloat)size;
+ (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;
#pragma mark - Icon Fonts
+ (UIFont *)ows_fontAwesomeFont:(CGFloat)size;
+ (UIFont *)ows_dripIconsFont:(CGFloat)size;
+ (UIFont *)ows_elegantIconsFont:(CGFloat)size;
#pragma mark - Dynamic Type
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle1Font;
2018-04-04 03:59:19 +02:00
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle2Font;
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle3Font;
2018-04-04 03:59:19 +02:00
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeHeadlineFont;
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeBodyFont;
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeSubheadlineFont;
@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
@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;
#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;
- (UIFont *)ows_monospaced;
2014-11-24 21:51:43 +01:00
@end
2018-01-25 19:53:39 +01:00
NS_ASSUME_NONNULL_END