vrshoot

diff libs/ft2static/freetype/internal/services/svpsinfo.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/ft2static/freetype/internal/services/svpsinfo.h	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,92 @@
     1.4 +/***************************************************************************/
     1.5 +/*                                                                         */
     1.6 +/*  svpsinfo.h                                                             */
     1.7 +/*                                                                         */
     1.8 +/*    The FreeType PostScript info service (specification).                */
     1.9 +/*                                                                         */
    1.10 +/*  Copyright 2003, 2004, 2009 by                                          */
    1.11 +/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
    1.12 +/*                                                                         */
    1.13 +/*  This file is part of the FreeType project, and may only be used,       */
    1.14 +/*  modified, and distributed under the terms of the FreeType project      */
    1.15 +/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    1.16 +/*  this file you indicate that you have read the license and              */
    1.17 +/*  understand and accept it fully.                                        */
    1.18 +/*                                                                         */
    1.19 +/***************************************************************************/
    1.20 +
    1.21 +
    1.22 +#ifndef __SVPSINFO_H__
    1.23 +#define __SVPSINFO_H__
    1.24 +
    1.25 +#include FT_INTERNAL_SERVICE_H
    1.26 +#include FT_INTERNAL_TYPE1_TYPES_H
    1.27 +
    1.28 +
    1.29 +FT_BEGIN_HEADER
    1.30 +
    1.31 +
    1.32 +#define FT_SERVICE_ID_POSTSCRIPT_INFO  "postscript-info"
    1.33 +
    1.34 +
    1.35 +  typedef FT_Error
    1.36 +  (*PS_GetFontInfoFunc)( FT_Face          face,
    1.37 +                         PS_FontInfoRec*  afont_info );
    1.38 +
    1.39 +  typedef FT_Error
    1.40 +  (*PS_GetFontExtraFunc)( FT_Face           face,
    1.41 +                          PS_FontExtraRec*  afont_extra );
    1.42 +
    1.43 +  typedef FT_Int
    1.44 +  (*PS_HasGlyphNamesFunc)( FT_Face   face );
    1.45 +
    1.46 +  typedef FT_Error
    1.47 +  (*PS_GetFontPrivateFunc)( FT_Face         face,
    1.48 +                            PS_PrivateRec*  afont_private );
    1.49 +
    1.50 +
    1.51 +  FT_DEFINE_SERVICE( PsInfo )
    1.52 +  {
    1.53 +    PS_GetFontInfoFunc     ps_get_font_info;
    1.54 +    PS_GetFontExtraFunc    ps_get_font_extra;
    1.55 +    PS_HasGlyphNamesFunc   ps_has_glyph_names;
    1.56 +    PS_GetFontPrivateFunc  ps_get_font_private;
    1.57 +  };
    1.58 +
    1.59 +#ifndef FT_CONFIG_OPTION_PIC
    1.60 +
    1.61 +#define FT_DEFINE_SERVICE_PSINFOREC(class_, get_font_info_,      \
    1.62 +        ps_get_font_extra_, has_glyph_names_, get_font_private_) \
    1.63 +  static const FT_Service_PsInfoRec class_ =                     \
    1.64 +  {                                                              \
    1.65 +    get_font_info_, ps_get_font_extra_, has_glyph_names_,        \
    1.66 +    get_font_private_                                            \
    1.67 +  };
    1.68 +
    1.69 +#else /* FT_CONFIG_OPTION_PIC */ 
    1.70 +
    1.71 +#define FT_DEFINE_SERVICE_PSINFOREC(class_, get_font_info_,      \
    1.72 +        ps_get_font_extra_, has_glyph_names_, get_font_private_) \
    1.73 +  void                                                           \
    1.74 +  FT_Init_Class_##class_( FT_Library library,                    \
    1.75 +                          FT_Service_PsInfoRec*  clazz)          \
    1.76 +  {                                                              \
    1.77 +    FT_UNUSED(library);                                          \
    1.78 +    clazz->ps_get_font_info = get_font_info_;                    \
    1.79 +    clazz->ps_get_font_extra = ps_get_font_extra_;               \
    1.80 +    clazz->ps_has_glyph_names = has_glyph_names_;                \
    1.81 +    clazz->ps_get_font_private = get_font_private_;              \
    1.82 +  } 
    1.83 +
    1.84 +#endif /* FT_CONFIG_OPTION_PIC */ 
    1.85 +
    1.86 +  /* */
    1.87 +
    1.88 +
    1.89 +FT_END_HEADER
    1.90 +
    1.91 +
    1.92 +#endif /* __SVPSINFO_H__ */
    1.93 +
    1.94 +
    1.95 +/* END */