00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 #ifndef __PFROBJS_H__
00020 #define __PFROBJS_H__
00021 
00022 #include "pfrtypes.h"
00023 
00024 
00025 FT_BEGIN_HEADER
00026 
00027   typedef struct PFR_FaceRec_*  PFR_Face;
00028 
00029   typedef struct PFR_SizeRec_*  PFR_Size;
00030 
00031   typedef struct PFR_SlotRec_*  PFR_Slot;
00032 
00033 
00034   typedef struct  PFR_FaceRec_
00035   {
00036     FT_FaceRec      root;
00037     PFR_HeaderRec   header;
00038     PFR_LogFontRec  log_font;
00039     PFR_PhyFontRec  phy_font;
00040 
00041   } PFR_FaceRec;
00042 
00043 
00044   typedef struct  PFR_SizeRec_
00045   {
00046     FT_SizeRec  root;
00047 
00048   } PFR_SizeRec;
00049 
00050 
00051   typedef struct  PFR_SlotRec_
00052   {
00053     FT_GlyphSlotRec  root;
00054     PFR_GlyphRec     glyph;
00055 
00056   } PFR_SlotRec;
00057 
00058 
00059   FT_LOCAL( FT_Error )
00060   pfr_face_init( FT_Stream      stream,
00061                  FT_Face        face,           
00062                  FT_Int         face_index,
00063                  FT_Int         num_params,
00064                  FT_Parameter*  params );
00065 
00066   FT_LOCAL( void )
00067   pfr_face_done( FT_Face  face );               
00068 
00069 
00070   FT_LOCAL( FT_Error )
00071   pfr_face_get_kerning( FT_Face     face,       
00072                         FT_UInt     glyph1,
00073                         FT_UInt     glyph2,
00074                         FT_Vector*  kerning );
00075 
00076 
00077   FT_LOCAL( FT_Error )
00078   pfr_slot_init( FT_GlyphSlot  slot );          
00079 
00080   FT_LOCAL( void )
00081   pfr_slot_done( FT_GlyphSlot  slot );          
00082 
00083 
00084   FT_LOCAL( FT_Error )
00085   pfr_slot_load( FT_GlyphSlot  slot,            
00086                  FT_Size       size,            
00087                  FT_UInt       gindex,
00088                  FT_Int32      load_flags );
00089 
00090 
00091 FT_END_HEADER
00092 
00093 #endif 
00094 
00095 
00096