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-2003, 2005-2007, 2009, 2012 by */ |
10 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 10 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
11 /* */ | 11 /* */ |
12 /* This file is part of the FreeType project, and may only be used, */ | 12 /* This file is part of the FreeType project, and may only be used, */ |
13 /* modified, and distributed under the terms of the FreeType project */ | 13 /* modified, and distributed under the terms of the FreeType project */ |
14 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 14 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
15 /* this file you indicate that you have read the license and */ | 15 /* this file you indicate that you have read the license and */ |
16 /* understand and accept it fully. */ | 16 /* understand and accept it fully. */ |
17 /* */ | 17 /* */ |
18 /***************************************************************************/ | 18 /***************************************************************************/ |
19 | 19 |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 typedef struct PSHinter_Interface_ | 672 typedef struct PSHinter_Interface_ |
673 { | 673 { |
674 PSH_Globals_Funcs (*get_globals_funcs)( FT_Module module ); | 674 PSH_Globals_Funcs (*get_globals_funcs)( FT_Module module ); |
675 T1_Hints_Funcs (*get_t1_funcs) ( FT_Module module ); | 675 T1_Hints_Funcs (*get_t1_funcs) ( FT_Module module ); |
676 T2_Hints_Funcs (*get_t2_funcs) ( FT_Module module ); | 676 T2_Hints_Funcs (*get_t2_funcs) ( FT_Module module ); |
677 | 677 |
678 } PSHinter_Interface; | 678 } PSHinter_Interface; |
679 | 679 |
680 typedef PSHinter_Interface* PSHinter_Service; | 680 typedef PSHinter_Interface* PSHinter_Service; |
681 | 681 |
| 682 |
682 #ifndef FT_CONFIG_OPTION_PIC | 683 #ifndef FT_CONFIG_OPTION_PIC |
683 | 684 |
684 #define FT_DEFINE_PSHINTER_INTERFACE(class_, get_globals_funcs_, \ | 685 #define FT_DEFINE_PSHINTER_INTERFACE( \ |
685 get_t1_funcs_, get_t2_funcs_) \ | 686 class_, \ |
686 static const PSHinter_Interface class_ = \ | 687 get_globals_funcs_, \ |
687 { \ | 688 get_t1_funcs_, \ |
688 get_globals_funcs_, get_t1_funcs_, get_t2_funcs_ \ | 689 get_t2_funcs_ ) \ |
| 690 static const PSHinter_Interface class_ = \ |
| 691 { \ |
| 692 get_globals_funcs_, \ |
| 693 get_t1_funcs_, \ |
| 694 get_t2_funcs_ \ |
689 }; | 695 }; |
690 | 696 |
691 #else /* FT_CONFIG_OPTION_PIC */ | 697 #else /* FT_CONFIG_OPTION_PIC */ |
692 | 698 |
693 #define FT_DEFINE_PSHINTER_INTERFACE(class_, get_globals_funcs_, \ | 699 #define FT_DEFINE_PSHINTER_INTERFACE( \ |
694 get_t1_funcs_, get_t2_funcs_) \ | 700 class_, \ |
695 void \ | 701 get_globals_funcs_, \ |
696 FT_Init_Class_##class_( FT_Library library, \ | 702 get_t1_funcs_, \ |
697 PSHinter_Interface* clazz) \ | 703 get_t2_funcs_ ) \ |
698 { \ | 704 void \ |
699 FT_UNUSED(library); \ | 705 FT_Init_Class_ ## class_( FT_Library library, \ |
700 clazz->get_globals_funcs = get_globals_funcs_; \ | 706 PSHinter_Interface* clazz ) \ |
701 clazz->get_t1_funcs = get_t1_funcs_; \ | 707 { \ |
702 clazz->get_t2_funcs = get_t2_funcs_; \ | 708 FT_UNUSED( library ); \ |
| 709 \ |
| 710 clazz->get_globals_funcs = get_globals_funcs_; \ |
| 711 clazz->get_t1_funcs = get_t1_funcs_; \ |
| 712 clazz->get_t2_funcs = get_t2_funcs_; \ |
703 } | 713 } |
704 | 714 |
705 #endif /* FT_CONFIG_OPTION_PIC */ | 715 #endif /* FT_CONFIG_OPTION_PIC */ |
706 | 716 |
707 FT_END_HEADER | 717 FT_END_HEADER |
708 | 718 |
709 #endif /* __PSHINTS_H__ */ | 719 #endif /* __PSHINTS_H__ */ |
710 | 720 |
711 | 721 |
712 /* END */ | 722 /* END */ |
OLD | NEW |