(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] /*fontweight取值
UIFontWeightUltraLight - 超细字体
UIFontWeightThin - 纤细字体
UIFontWeightLight - 亮字体
UIFontWeightRegular - 常规字体
UIFontWeightMedium - 介于Regular和Semibold之间
UIFontWeightSemibold - 半粗字体
UIFontWeightBold - 加粗字体
UIFontWeightHeavy - 介于Bold和Black之间
UIFontWeightBlack - 最粗字体(理解)
*/
#endif /* Font_h */
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论