00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __AFPIC_H__
00020 #define __AFPIC_H__
00021
00022
00023 FT_BEGIN_HEADER
00024
00025 #include FT_INTERNAL_PIC_H
00026
00027 #ifndef FT_CONFIG_OPTION_PIC
00028
00029 #define AF_SCRIPT_CLASSES_GET af_script_classes
00030 #define AF_AF_AUTOFITTER_SERVICE_GET af_autofitter_service
00031
00032 #else
00033
00034 #include "aftypes.h"
00035
00036
00037 #ifdef FT_OPTION_AUTOFIT2
00038 #define AF_SCRIPT_CLASSES_COUNT 6
00039 #else
00040 #define AF_SCRIPT_CLASSES_COUNT 5
00041 #endif
00042 #define AF_SCRIPT_CLASSES_REC_COUNT (AF_SCRIPT_CLASSES_COUNT-1)
00043
00044 typedef struct AFModulePIC_
00045 {
00046 AF_ScriptClass af_script_classes[AF_SCRIPT_CLASSES_COUNT];
00047 AF_ScriptClassRec af_script_classes_rec[AF_SCRIPT_CLASSES_REC_COUNT];
00048 FT_AutoHinter_ServiceRec af_autofitter_service;
00049 } AFModulePIC;
00050
00051 #define GET_PIC(lib) ((AFModulePIC*)((lib)->pic_container.autofit))
00052 #define AF_SCRIPT_CLASSES_GET (GET_PIC(FT_FACE_LIBRARY(globals->face))->af_script_classes)
00053 #define AF_AF_AUTOFITTER_SERVICE_GET (GET_PIC(library)->af_autofitter_service)
00054
00055 #endif
00056
00057
00058
00059 FT_END_HEADER
00060
00061 #endif
00062
00063
00064