vrshoot

annotate libs/ft2static/freetype/internal/services/svpostnm.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
rev   line source
nuclear@0 1 /***************************************************************************/
nuclear@0 2 /* */
nuclear@0 3 /* svpostnm.h */
nuclear@0 4 /* */
nuclear@0 5 /* The FreeType PostScript name services (specification). */
nuclear@0 6 /* */
nuclear@0 7 /* Copyright 2003, 2007 by */
nuclear@0 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
nuclear@0 9 /* */
nuclear@0 10 /* This file is part of the FreeType project, and may only be used, */
nuclear@0 11 /* modified, and distributed under the terms of the FreeType project */
nuclear@0 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
nuclear@0 13 /* this file you indicate that you have read the license and */
nuclear@0 14 /* understand and accept it fully. */
nuclear@0 15 /* */
nuclear@0 16 /***************************************************************************/
nuclear@0 17
nuclear@0 18
nuclear@0 19 #ifndef __SVPOSTNM_H__
nuclear@0 20 #define __SVPOSTNM_H__
nuclear@0 21
nuclear@0 22 #include FT_INTERNAL_SERVICE_H
nuclear@0 23
nuclear@0 24
nuclear@0 25 FT_BEGIN_HEADER
nuclear@0 26
nuclear@0 27 /*
nuclear@0 28 * A trivial service used to retrieve the PostScript name of a given
nuclear@0 29 * font when available. The `get_name' field should never be NULL.
nuclear@0 30 *
nuclear@0 31 * The corresponding function can return NULL to indicate that the
nuclear@0 32 * PostScript name is not available.
nuclear@0 33 *
nuclear@0 34 * The name is owned by the face and will be destroyed with it.
nuclear@0 35 */
nuclear@0 36
nuclear@0 37 #define FT_SERVICE_ID_POSTSCRIPT_FONT_NAME "postscript-font-name"
nuclear@0 38
nuclear@0 39
nuclear@0 40 typedef const char*
nuclear@0 41 (*FT_PsName_GetFunc)( FT_Face face );
nuclear@0 42
nuclear@0 43
nuclear@0 44 FT_DEFINE_SERVICE( PsFontName )
nuclear@0 45 {
nuclear@0 46 FT_PsName_GetFunc get_ps_font_name;
nuclear@0 47 };
nuclear@0 48
nuclear@0 49 #ifndef FT_CONFIG_OPTION_PIC
nuclear@0 50
nuclear@0 51 #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \
nuclear@0 52 static const FT_Service_PsFontNameRec class_ = \
nuclear@0 53 { \
nuclear@0 54 get_ps_font_name_ \
nuclear@0 55 };
nuclear@0 56
nuclear@0 57 #else /* FT_CONFIG_OPTION_PIC */
nuclear@0 58
nuclear@0 59 #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \
nuclear@0 60 void \
nuclear@0 61 FT_Init_Class_##class_( FT_Library library, \
nuclear@0 62 FT_Service_PsFontNameRec* clazz) \
nuclear@0 63 { \
nuclear@0 64 FT_UNUSED(library); \
nuclear@0 65 clazz->get_ps_font_name = get_ps_font_name_; \
nuclear@0 66 }
nuclear@0 67
nuclear@0 68 #endif /* FT_CONFIG_OPTION_PIC */
nuclear@0 69
nuclear@0 70 /* */
nuclear@0 71
nuclear@0 72
nuclear@0 73 FT_END_HEADER
nuclear@0 74
nuclear@0 75
nuclear@0 76 #endif /* __SVPOSTNM_H__ */
nuclear@0 77
nuclear@0 78
nuclear@0 79 /* END */