iOS 字体Font宏定义


//

//  Font.h

//  HappyStyle

//

//  Created by Zhanggaoju on 2018/6/19.

//  Copyright © 2018年 ZhangGaoju. All rights reserved.

//

/* 字体 */

#ifndef Font_h

#define Font_h

/* 平方-细体 */

#define kFont_Regular(font) [UIFont fontWithName:@"PingFangSC-Regular"size:font*scale_width]

/* 平方-粗体 */

#define kFont_Medium(font)  [UIFont fontWithName:@"PingFangSC-Medium"size:font*scale_width]

/* 系统字体-超细字体*/

#define kFont_UltraLight (font)            [UIFont systemFontOfSize:font weight:UIFontWeightUltraLight]

/* 系统字体-纤细字体*/

#define Font_Thin(font)            [UIFont systemFontOfSize:font weight:UIFontWeightThin]

/* 系统字体-亮字体*/

#define Font_Light(font)            [UIFont systemFontOfSize:font weight:UIFontWeightLight]

/* 系统字体-常规字体*/

#define kFont_sRegular (font)            [UIFont systemFontOfSize:font weight:UIFontWeightRegular]

/*  介于Regular和Semibold之间*/

#define Font_sMedium(font)            [UIFont systemFontOfSize:font weight:UIFontWeightMedium]

/* 系统字体-半粗字体*/

#define Font_Semibold(font)            [UIFont systemFontOfSize:font weight:UIFontWeightSemibold]

/* 系统字体-加粗字体*/

#define kFont_Bold (font)            [UIFont systemFontOfSize:font weight:UIFontWeightBold]

/*  介于Bold和Black之间*/

#define Font_Heavy(font)            [UIFont systemFontOfSize:font weight:UIFontWeightHeavy]

/* 系统字体-最粗字体*/

#define Font_Black(font)            [UIFont systemFontOfSize:font weight:UIFontWeightBlack]

/*

 UIFontWeightUltraLight  - 超细字体

 UIFontWeightThin  - 纤细字体

 UIFontWeightLight  - 亮字体

 UIFontWeightRegular  - 常规字体

 UIFontWeightMedium  - 介于Regular和Semibold之间

 UIFontWeightSemibold  - 半粗字体

 UIFontWeightBold  - 加粗字体

 UIFontWeightHeavy  - 介于Bold和Black之间

 UIFontWeightBlack  - 最粗字体(理解)

 */

#endif /* Font_h */

你可能感兴趣的:(iOS 字体Font宏定义)