FontHelper.h 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // FontHelper.h
  3. // CommonLibrary
  4. //
  5. // Created by Alexi on 13-10-22.
  6. // Copyright (c) 2013年 ywchen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface FontHelper : NSObject
  10. // 标题字体
  11. @property (nonatomic, readonly) UIFont *titleFont;
  12. // 子标题字体
  13. @property (nonatomic, readonly) UIFont *subTitleFont;
  14. // 文本字体
  15. @property (nonatomic, readonly) UIFont *textFont;
  16. // 子文本字体
  17. @property (nonatomic, readonly) UIFont *subTextFont;
  18. // 提示语字体
  19. @property (nonatomic, readonly) UIFont *tipFont;
  20. // 超大号字体
  21. @property (nonatomic, readonly) UIFont *superLargeFont;
  22. // 大号字体
  23. @property (nonatomic, readonly) UIFont *largeFont;
  24. // 中号字体
  25. @property (nonatomic, readonly) UIFont *mediumFont;
  26. // 小号字体
  27. @property (nonatomic, readonly) UIFont *smallFont;
  28. + (instancetype)shareHelper;
  29. + (UIFont *)fontWithName:(NSString *)name size:(CGFloat)size;
  30. + (UIFont *)fontWithSize:(CGFloat)size;
  31. + (UIFont *)boldFontWithSize:(CGFloat)size;
  32. @end