123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- //
- // UIFont+Fonts.h
- // MACProject
- //
- // modify by MacKun on 15/9/10.
- // Copyright (c) 2015年 MacKun. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- 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
|