// // UIFont+Fonts.h // MACProject // // modify by MacKun on 15/9/10. // Copyright (c) 2015年 MacKun. All rights reserved. // #import typedef NS_ENUM(NSInteger, FontWeightStyle) { FontWeightStyleMedium, // 中黑体 FontWeightStyleSemibold, // 中粗体 FontWeightStyleLight, // 细体 FontWeightStyleUltralight, // 极细体 FontWeightStyleRegular, // 常规体 FontWeightStyleThin, // 纤细体 FontWeightStyleTitleFont, // 经典圆体简 FontWeightStyleNumberFont,//数字字体 }; @interface UIFont (Fonts) #pragma mark - Added font. /** * HYQiHei-BEJF font (added by plist). * * @param size Font's size. * * @return Font. */ + (UIFont *)HYQiHeiWithFontSize:(CGFloat)size; #pragma mark - System font. /** * AppleSDGothicNeo-Thin font. * * @param size Font's size. * * @return Font. */ + (UIFont *)AppleSDGothicNeoThinWithFontSize:(CGFloat)size; /** * Avenir font. * * @param size Font's size. * * @return Font. */ + (UIFont *)AvenirWithFontSize:(CGFloat)size; /** * Avenir-Light font. * * @param size Font's size. * * @return Font. */ + (UIFont *)AvenirLightWithFontSize:(CGFloat)size; /** * Heiti SC font. * * @param size Font's size. * * @return Font. */ + (UIFont *)HeitiSCWithFontSize:(CGFloat)size; /** * HelveticaNeue font. * * @param size Font's size. * * @return Font. */ + (UIFont *)HelveticaNeueFontSize:(CGFloat)size; /** * HelveticaNeue-Bold font. * * @param size Font's size. * * @return Font. */ + (UIFont *)HelveticaNeueBoldFontSize:(CGFloat)size; /** * PingFangSc font. * * @param size Font's size. * * @return Font. */ /** 苹方字体 @param fontWeight 字体粗细(字重) @param fontSize 字体大小 @return 返回指定字重大小的苹方字体 */ + (UIFont *)pingFangSCWithWeight:(FontWeightStyle)fontWeight size:(CGFloat)fontSize; @end