1 /****************************************************************************
   2  *
   3  * svttglyf.h
   4  *
   5  *   The FreeType TrueType glyph service.
   6  *
   7  * Copyright (C) 2007-2019 by
   8  * David Turner.
   9  *
  10  * This file is part of the FreeType project, and may only be used,
  11  * modified, and distributed under the terms of the FreeType project
  12  * license, LICENSE.TXT.  By continuing to use, modify, or distribute
  13  * this file you indicate that you have read the license and
  14  * understand and accept it fully.
  15  *
  16  */
  17 
  18 #ifndef SVTTGLYF_H_
  19 #define SVTTGLYF_H_
  20 
  21 #include FT_INTERNAL_SERVICE_H
  22 #include FT_TRUETYPE_TABLES_H
  23 
  24 
  25 FT_BEGIN_HEADER
  26 
  27 
  28 #define FT_SERVICE_ID_TT_GLYF  "tt-glyf"
  29 
  30 
  31   typedef FT_ULong
  32   (*TT_Glyf_GetLocationFunc)( FT_Face    face,
  33                               FT_UInt    gindex,
  34                               FT_ULong  *psize );
  35 
  36   FT_DEFINE_SERVICE( TTGlyf )
  37   {
  38     TT_Glyf_GetLocationFunc  get_location;
  39   };
  40 
  41 
  42 #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ )  \
  43   static const FT_Service_TTGlyfRec  class_ =                 \
  44   {                                                           \
  45     get_location_                                             \
  46   };
  47 
  48   /* */
  49 
  50 
  51 FT_END_HEADER
  52 
  53 #endif /* SVTTGLYF_H_ */
  54 
  55 
  56 /* END */