mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.3 KiB
C
64 lines
2.3 KiB
C
11 years ago
|
//
|
||
6 years ago
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
11 years ago
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
7 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
11 years ago
|
@interface UIFont (OWS)
|
||
|
|
||
9 years ago
|
+ (UIFont *)ows_thinFontWithSize:(CGFloat)size;
|
||
11 years ago
|
|
||
9 years ago
|
+ (UIFont *)ows_lightFontWithSize:(CGFloat)size;
|
||
11 years ago
|
|
||
9 years ago
|
+ (UIFont *)ows_regularFontWithSize:(CGFloat)size;
|
||
11 years ago
|
|
||
9 years ago
|
+ (UIFont *)ows_mediumFontWithSize:(CGFloat)size;
|
||
11 years ago
|
|
||
9 years ago
|
+ (UIFont *)ows_boldFontWithSize:(CGFloat)size;
|
||
11 years ago
|
|
||
6 years ago
|
+ (UIFont *)ows_monospacedDigitFontWithSize:(CGFloat)size;
|
||
|
|
||
8 years ago
|
#pragma mark - Icon Fonts
|
||
|
|
||
|
+ (UIFont *)ows_fontAwesomeFont:(CGFloat)size;
|
||
|
+ (UIFont *)ows_dripIconsFont:(CGFloat)size;
|
||
|
+ (UIFont *)ows_elegantIconsFont:(CGFloat)size;
|
||
9 years ago
|
|
||
8 years ago
|
#pragma mark - Dynamic Type
|
||
9 years ago
|
|
||
7 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle1Font;
|
||
7 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle2Font;
|
||
7 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeTitle3Font;
|
||
7 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeHeadlineFont;
|
||
7 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeBodyFont;
|
||
7 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeSubheadlineFont;
|
||
7 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeFootnoteFont;
|
||
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeCaption1Font;
|
||
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeCaption2Font;
|
||
|
|
||
6 years ago
|
#pragma mark - Dynamic Type Clamped
|
||
|
|
||
6 years ago
|
@property (class, readonly, nonatomic) UIFont *ows_dynamicTypeLargeTitle1ClampedFont;
|
||
6 years ago
|
@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;
|
||
|
|
||
7 years ago
|
#pragma mark - Styles
|
||
|
|
||
|
- (UIFont *)ows_italic;
|
||
7 years ago
|
- (UIFont *)ows_bold;
|
||
7 years ago
|
- (UIFont *)ows_mediumWeight;
|
||
6 years ago
|
- (UIFont *)ows_monospaced;
|
||
9 years ago
|
|
||
11 years ago
|
@end
|
||
7 years ago
|
|
||
|
NS_ASSUME_NONNULL_END
|