nuclear@0: /***************************************************************************/ nuclear@0: /* */ nuclear@0: /* svpostnm.h */ nuclear@0: /* */ nuclear@0: /* The FreeType PostScript name services (specification). */ nuclear@0: /* */ nuclear@0: /* Copyright 2003, 2007 by */ nuclear@0: /* David Turner, Robert Wilhelm, and Werner Lemberg. */ nuclear@0: /* */ nuclear@0: /* This file is part of the FreeType project, and may only be used, */ nuclear@0: /* modified, and distributed under the terms of the FreeType project */ nuclear@0: /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ nuclear@0: /* this file you indicate that you have read the license and */ nuclear@0: /* understand and accept it fully. */ nuclear@0: /* */ nuclear@0: /***************************************************************************/ nuclear@0: nuclear@0: nuclear@0: #ifndef __SVPOSTNM_H__ nuclear@0: #define __SVPOSTNM_H__ nuclear@0: nuclear@0: #include FT_INTERNAL_SERVICE_H nuclear@0: nuclear@0: nuclear@0: FT_BEGIN_HEADER nuclear@0: nuclear@0: /* nuclear@0: * A trivial service used to retrieve the PostScript name of a given nuclear@0: * font when available. The `get_name' field should never be NULL. nuclear@0: * nuclear@0: * The corresponding function can return NULL to indicate that the nuclear@0: * PostScript name is not available. nuclear@0: * nuclear@0: * The name is owned by the face and will be destroyed with it. nuclear@0: */ nuclear@0: nuclear@0: #define FT_SERVICE_ID_POSTSCRIPT_FONT_NAME "postscript-font-name" nuclear@0: nuclear@0: nuclear@0: typedef const char* nuclear@0: (*FT_PsName_GetFunc)( FT_Face face ); nuclear@0: nuclear@0: nuclear@0: FT_DEFINE_SERVICE( PsFontName ) nuclear@0: { nuclear@0: FT_PsName_GetFunc get_ps_font_name; nuclear@0: }; nuclear@0: nuclear@0: #ifndef FT_CONFIG_OPTION_PIC nuclear@0: nuclear@0: #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \ nuclear@0: static const FT_Service_PsFontNameRec class_ = \ nuclear@0: { \ nuclear@0: get_ps_font_name_ \ nuclear@0: }; nuclear@0: nuclear@0: #else /* FT_CONFIG_OPTION_PIC */ nuclear@0: nuclear@0: #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \ nuclear@0: void \ nuclear@0: FT_Init_Class_##class_( FT_Library library, \ nuclear@0: FT_Service_PsFontNameRec* clazz) \ nuclear@0: { \ nuclear@0: FT_UNUSED(library); \ nuclear@0: clazz->get_ps_font_name = get_ps_font_name_; \ nuclear@0: } nuclear@0: nuclear@0: #endif /* FT_CONFIG_OPTION_PIC */ nuclear@0: nuclear@0: /* */ nuclear@0: nuclear@0: nuclear@0: FT_END_HEADER nuclear@0: nuclear@0: nuclear@0: #endif /* __SVPOSTNM_H__ */ nuclear@0: nuclear@0: nuclear@0: /* END */