ZSSFontsViewController.h 948 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // ZSSFontsViewController.h
  3. // ZSSRichTextEditor
  4. //
  5. // Created by Will Swan on 03/09/2016.
  6. // Copyright © 2016 Zed Said Studio. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(int16_t, ZSSFontFamily) {
  10. ZSSFontFamilyDefault = 0,
  11. ZSSFontFamilyTrebuchet = 1,
  12. ZSSFontFamilyVerdana = 2,
  13. ZSSFontFamilyGeorgia = 3,
  14. ZSSFontFamilyPalatino = 4,
  15. ZSSFontFamilyTimesNew = 5,
  16. ZSSFontFamilyCourierNew = 6,
  17. };
  18. @protocol ZSSFontsViewControllerDelegate
  19. - (void)setSelectedFontFamily:(ZSSFontFamily)fontFamily;
  20. @end
  21. @interface ZSSFontsViewController : UIViewController {
  22. id<ZSSFontsViewControllerDelegate> __weak delegate;
  23. ZSSFontFamily _font;
  24. }
  25. + (ZSSFontsViewController *)cancelableFontPickerViewControllerWithFontFamily:(ZSSFontFamily)fontFamily;
  26. - (id)initWithFontFamily:(ZSSFontFamily)fontFamily;
  27. @property (weak) id<ZSSFontsViewControllerDelegate> delegate;
  28. @end