mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-07 20:10:44 +00:00
36 lines
992 B
Objective-C
36 lines
992 B
Objective-C
#import <UIKit/UIKit.h>
|
|
#import <CoreText/CoreText.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
UIFont *TGSystemFontOfSize(CGFloat size);
|
|
UIFont *TGBoldSystemFontOfSize(CGFloat size);
|
|
UIFont *TGLightSystemFontOfSize(CGFloat size);
|
|
UIFont *TGUltralightSystemFontOfSize(CGFloat size);
|
|
UIFont *TGMediumSystemFontOfSize(CGFloat size);
|
|
UIFont *TGSemiboldSystemFontOfSize(CGFloat size);
|
|
UIFont *TGItalicSystemFontOfSize(CGFloat size);
|
|
UIFont *TGFixedSystemFontOfSize(CGFloat size);
|
|
|
|
CTFontRef TGCoreTextSystemFontOfSize(CGFloat size);
|
|
CTFontRef TGCoreTextMediumFontOfSize(CGFloat size);
|
|
CTFontRef TGCoreTextBoldFontOfSize(CGFloat size);
|
|
CTFontRef TGCoreTextLightFontOfSize(CGFloat size);
|
|
CTFontRef TGCoreTextFixedFontOfSize(CGFloat size);
|
|
CTFontRef TGCoreTextItalicFontOfSize(CGFloat size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
@interface TGFont : NSObject
|
|
|
|
+ (UIFont *)systemFontOfSize:(CGFloat)size;
|
|
+ (UIFont *)boldSystemFontOfSize:(CGFloat)size;
|
|
|
|
+ (UIFont *)roundedFontOfSize:(CGFloat)size;
|
|
|
|
@end
|