shithub: freetype+ttf2subf

ref: 609e28c3be484792936271dacefe9b48c378e7eb
dir: /src/pfr/pfrobjs.h/

View raw version
#ifndef __PFR_OBJS_H__
#define __PFR_OBJS_H__

#include "pfrtypes.h"

FT_BEGIN_HEADER

  typedef struct PFR_FaceRec_*   PFR_Face;
  
  typedef struct PFR_SizeRec_*   PFR_Size;
  
  typedef struct PFR_SlotRec_*   PFR_Slot;



  typedef struct PFR_FaceRec_
  {
    FT_FaceRec      root;
    PFR_HeaderRec   header;
    PFR_LogFontRec  log_font;
    PFR_PhyFontRec  phy_font;

  } PFR_FaceRec;


  typedef struct PFR_SizeRec_
  {
    FT_SizeRec   root;
  
  } PFR_SizeRec;


  typedef struct PFR_SlotRec_
  {
    FT_GlyphSlotRec  root;
    PFR_GlyphRec     glyph;
    
  } PFR_SlotRec;


  FT_LOCAL( FT_Error )
  pfr_face_init( FT_Stream  stream,
                 PFR_Face   face,
                 FT_Int     face_index );


  FT_LOCAL( void )
  pfr_face_done( PFR_Face  face );


  FT_LOCAL( FT_Error )
  pfr_slot_init( PFR_Slot  slot );


  FT_LOCAL( void )
  pfr_slot_done( PFR_Slot  slot );


  FT_LOCAL( FT_Error )
  pfr_slot_load( PFR_Slot  slot,
                 PFR_Size  size,
                 FT_UInt   gindex,
                 FT_Int    load_flags );


FT_END_HEADER

#endif /* __PFR_OBJS_H__ */