OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* pshints.h */ | 3 /* pshints.h */ |
4 /* */ | 4 /* */ |
5 /* Interface to Postscript-specific (Type 1 and Type 2) hints */ | 5 /* Interface to Postscript-specific (Type 1 and Type 2) hints */ |
6 /* recorders (specification only). These are used to support native */ | 6 /* recorders (specification only). These are used to support native */ |
7 /* T1/T2 hints in the `type1', `cid', and `cff' font drivers. */ | 7 /* T1/T2 hints in the `type1', `cid', and `cff' font drivers. */ |
8 /* */ | 8 /* */ |
9 /* Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2009 by */ | 9 /* Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2009 by */ |
10 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 10 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 | 681 |
682 #ifndef FT_CONFIG_OPTION_PIC | 682 #ifndef FT_CONFIG_OPTION_PIC |
683 | 683 |
684 #define FT_DEFINE_PSHINTER_INTERFACE(class_, get_globals_funcs_, \ | 684 #define FT_DEFINE_PSHINTER_INTERFACE(class_, get_globals_funcs_, \ |
685 get_t1_funcs_, get_t2_funcs_) \ | 685 get_t1_funcs_, get_t2_funcs_) \ |
686 static const PSHinter_Interface class_ = \ | 686 static const PSHinter_Interface class_ = \ |
687 { \ | 687 { \ |
688 get_globals_funcs_, get_t1_funcs_, get_t2_funcs_ \ | 688 get_globals_funcs_, get_t1_funcs_, get_t2_funcs_ \ |
689 }; | 689 }; |
690 | 690 |
691 #else /* FT_CONFIG_OPTION_PIC */ | 691 #else /* FT_CONFIG_OPTION_PIC */ |
692 | 692 |
693 #define FT_DEFINE_PSHINTER_INTERFACE(class_, get_globals_funcs_, \ | 693 #define FT_DEFINE_PSHINTER_INTERFACE(class_, get_globals_funcs_, \ |
694 get_t1_funcs_, get_t2_funcs_) \ | 694 get_t1_funcs_, get_t2_funcs_) \ |
695 void \ | 695 void \ |
696 FT_Init_Class_##class_( FT_Library library, \ | 696 FT_Init_Class_##class_( FT_Library library, \ |
697 PSHinter_Interface* clazz) \ | 697 PSHinter_Interface* clazz) \ |
698 { \ | 698 { \ |
699 FT_UNUSED(library); \ | 699 FT_UNUSED(library); \ |
700 clazz->get_globals_funcs = get_globals_funcs_; \ | 700 clazz->get_globals_funcs = get_globals_funcs_; \ |
701 clazz->get_t1_funcs = get_t1_funcs_; \ | 701 clazz->get_t1_funcs = get_t1_funcs_; \ |
702 clazz->get_t2_funcs = get_t2_funcs_; \ | 702 clazz->get_t2_funcs = get_t2_funcs_; \ |
703 } | 703 } |
704 | 704 |
705 #endif /* FT_CONFIG_OPTION_PIC */ | 705 #endif /* FT_CONFIG_OPTION_PIC */ |
706 | 706 |
707 FT_END_HEADER | 707 FT_END_HEADER |
708 | 708 |
709 #endif /* __PSHINTS_H__ */ | 709 #endif /* __PSHINTS_H__ */ |
710 | 710 |
711 | 711 |
712 /* END */ | 712 /* END */ |
OLD | NEW |