TextDrawable.h 875 B

123456789101112131415161718192021222324252627
  1. //
  2. // TextDrawable.h
  3. // pdftest
  4. //
  5. // Created by Ray on 10/12/16.
  6. // Copyright © 2016 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "BasicDrawable.h"
  9. @interface TextDrawable : BasicDrawable
  10. @property (nonatomic,strong) NSString* text;
  11. @property NSRange textRange;
  12. @property double lineSpace;
  13. @property double characterSpace;
  14. @property double paragraphSpace;
  15. @property (nonatomic,strong) UIColor * textColor;
  16. @property CTTextAlignment textalignment;
  17. -(instancetype) init:(CGRect) rect source_type:(NSString*) source_type source:(NSString*)source textAlignment:(NSString*)textAlignment vAlign:(NSString*)vAlign size:(NSString*)size;
  18. +(NSMutableDictionary *) createTextTemplate:(CGRect) rect source_type:(NSString*) source_type source:(NSString*)source textAlignment:(NSString*)textAlignment vAlign:(NSString*)vAlign size:(NSString*)size;
  19. @end