sfntpic.h

Go to the documentation of this file.
00001 /***************************************************************************/
00002 /*                                                                         */
00003 /*  sfntpic.h                                                              */
00004 /*                                                                         */
00005 /*    The FreeType position independent code services for sfnt module.     */
00006 /*                                                                         */
00007 /*  Copyright 2009 by                                                      */
00008 /*  Oran Agra and Mickey Gabel.                                            */
00009 /*                                                                         */
00010 /*  This file is part of the FreeType project, and may only be used,       */
00011 /*  modified, and distributed under the terms of the FreeType project      */
00012 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
00013 /*  this file you indicate that you have read the license and              */
00014 /*  understand and accept it fully.                                        */
00015 /*                                                                         */
00016 /***************************************************************************/
00017 
00018 
00019 #ifndef __SFNTPIC_H__
00020 #define __SFNTPIC_H__
00021 
00022   
00023 FT_BEGIN_HEADER
00024 
00025 #include FT_INTERNAL_PIC_H
00026 
00027  #ifndef FT_CONFIG_OPTION_PIC
00028 #define FT_SFNT_SERVICES_GET             sfnt_services
00029 #define FT_SFNT_SERVICE_GLYPH_DICT_GET   sfnt_service_glyph_dict
00030 #define FT_SFNT_SERVICE_PS_NAME_GET      sfnt_service_ps_name
00031 #define FT_TT_SERVICE_GET_CMAP_INFO_GET  tt_service_get_cmap_info
00032 #define FT_SFNT_SERVICES_GET             sfnt_services
00033 #define FT_TT_CMAP_CLASSES_GET           tt_cmap_classes
00034 #define FT_SFNT_SERVICE_SFNT_TABLE_GET   sfnt_service_sfnt_table
00035 #define FT_SFNT_SERVICE_BDF_GET          sfnt_service_bdf
00036 #define FT_SFNT_INTERFACE_GET            sfnt_interface
00037 
00038 #else /* FT_CONFIG_OPTION_PIC */
00039 
00040 /* some include files required for members of sfntModulePIC */
00041 #include FT_SERVICE_GLYPH_DICT_H
00042 #include FT_SERVICE_POSTSCRIPT_NAME_H
00043 #include FT_SERVICE_SFNT_H
00044 #include FT_SERVICE_TT_CMAP_H
00045 #ifdef TT_CONFIG_OPTION_BDF
00046 #include "ttbdf.h"
00047 #include FT_SERVICE_BDF_H
00048 #endif
00049 #include FT_INTERNAL_DEBUG_H
00050 #include FT_INTERNAL_STREAM_H
00051 #include FT_INTERNAL_SFNT_H
00052 #include "ttcmap.h"
00053 
00054 typedef struct sfntModulePIC_
00055   {
00056     FT_ServiceDescRec* sfnt_services;
00057     FT_Service_GlyphDictRec sfnt_service_glyph_dict;
00058     FT_Service_PsFontNameRec  sfnt_service_ps_name;
00059     FT_Service_TTCMapsRec  tt_service_get_cmap_info;
00060     TT_CMap_Class* tt_cmap_classes;
00061     FT_Service_SFNT_TableRec sfnt_service_sfnt_table;
00062 #ifdef TT_CONFIG_OPTION_BDF
00063     FT_Service_BDFRec sfnt_service_bdf;
00064 #endif
00065     SFNT_Interface sfnt_interface;
00066   } sfntModulePIC;
00067 
00068 #define GET_PIC(lib)                      ((sfntModulePIC*)((lib)->pic_container.sfnt))
00069 #define FT_SFNT_SERVICES_GET              (GET_PIC(library)->sfnt_services)
00070 #define FT_SFNT_SERVICE_GLYPH_DICT_GET    (GET_PIC(library)->sfnt_service_glyph_dict)
00071 #define FT_SFNT_SERVICE_PS_NAME_GET       (GET_PIC(library)->sfnt_service_ps_name)
00072 #define FT_TT_SERVICE_GET_CMAP_INFO_GET   (GET_PIC(library)->tt_service_get_cmap_info)
00073 #define FT_SFNT_SERVICES_GET              (GET_PIC(library)->sfnt_services)
00074 #define FT_TT_CMAP_CLASSES_GET            (GET_PIC(library)->tt_cmap_classes)
00075 #define FT_SFNT_SERVICE_SFNT_TABLE_GET    (GET_PIC(library)->sfnt_service_sfnt_table)
00076 #define FT_SFNT_SERVICE_BDF_GET           (GET_PIC(library)->sfnt_service_bdf)
00077 #define FT_SFNT_INTERFACE_GET             (GET_PIC(library)->sfnt_interface)
00078 
00079 #endif /* FT_CONFIG_OPTION_PIC */
00080 
00081 /* */
00082 
00083 FT_END_HEADER
00084 
00085 #endif /* __SFNTPIC_H__ */
00086 
00087 
00088 /* END */

Generated on Tue Jul 5 14:13:51 2011 for ROOT_528-00b_version by  doxygen 1.5.1