OCBarrageTextDescriptor.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // OCBarrageTextDescriptor.h
  3. // TestApp
  4. //
  5. // Created by QMTV on 2017/8/23.
  6. // Copyright © 2017年 LFC. All rights reserved.
  7. //
  8. #import "OCBarrageDescriptor.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface OCBarrageTextDescriptor : OCBarrageDescriptor {
  11. NSMutableDictionary *_textAttribute;
  12. }
  13. @property (nonatomic, strong, nullable) UIFont *textFont;
  14. @property (nonatomic, strong, nullable) UIColor *textColor;
  15. /*
  16. * 关闭文字阴影可大幅提升性能, 推荐使用strokeColor, 与shadowColor相比strokeColor性能更强悍
  17. */
  18. @property (nonatomic, assign) BOOL textShadowOpened;//默认NO
  19. @property (nonatomic, strong, nullable) UIColor *shadowColor;//默认黑色
  20. @property (nonatomic, assign) CGSize shadowOffset;//默认CGSizeZero
  21. @property (nonatomic, assign) CGFloat shadowRadius;//默认2.0
  22. @property (nonatomic, assign) CGFloat shadowOpacity;//默认0.5
  23. @property (nonatomic, strong, nullable) UIColor *strokeColor;
  24. @property (nonatomic, assign) int strokeWidth;//笔画宽度(粗细),取值为 NSNumber 对象(整数),负值填充效果,正值中空效果
  25. @property (nonatomic, copy, nullable) NSString *text;
  26. @property (nonatomic, copy, nullable) NSAttributedString *attributedText;
  27. @end
  28. NS_ASSUME_NONNULL_END