ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

svpostnm.h
Go to the documentation of this file.
00001 /***************************************************************************/
00002 /*                                                                         */
00003 /*  svpostnm.h                                                             */
00004 /*                                                                         */
00005 /*    The FreeType PostScript name services (specification).               */
00006 /*                                                                         */
00007 /*  Copyright 2003, 2007 by                                                */
00008 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
00009 /*                                                                         */
00010 /*  This file is part of the FreeType project, and may only be used,       */
00011 /*  modified, and distributed under the terms of the FreeType project      */
00012 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
00013 /*  this file you indicate that you have read the license and              */
00014 /*  understand and accept it fully.                                        */
00015 /*                                                                         */
00016 /***************************************************************************/
00017 
00018 
00019 #ifndef __SVPOSTNM_H__
00020 #define __SVPOSTNM_H__
00021 
00022 #include FT_INTERNAL_SERVICE_H
00023 
00024 
00025 FT_BEGIN_HEADER
00026 
00027   /*
00028    *  A trivial service used to retrieve the PostScript name of a given
00029    *  font when available.  The `get_name' field should never be NULL.
00030    *
00031    *  The corresponding function can return NULL to indicate that the
00032    *  PostScript name is not available.
00033    *
00034    *  The name is owned by the face and will be destroyed with it.
00035    */
00036 
00037 #define FT_SERVICE_ID_POSTSCRIPT_FONT_NAME  "postscript-font-name"
00038 
00039 
00040   typedef const char*
00041   (*FT_PsName_GetFunc)( FT_Face  face );
00042 
00043 
00044   FT_DEFINE_SERVICE( PsFontName )
00045   {
00046     FT_PsName_GetFunc  get_ps_font_name;
00047   };
00048 
00049 #ifndef FT_CONFIG_OPTION_PIC
00050 
00051 #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \
00052   static const FT_Service_PsFontNameRec class_ =                   \
00053   {                                                                \
00054     get_ps_font_name_                                              \
00055   };
00056 
00057 #else /* FT_CONFIG_OPTION_PIC */ 
00058 
00059 #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \
00060   void                                                             \
00061   FT_Init_Class_##class_( FT_Library library,                      \
00062                           FT_Service_PsFontNameRec* clazz)         \
00063   {                                                                \
00064     FT_UNUSED(library);                                            \
00065     clazz->get_ps_font_name = get_ps_font_name_;                   \
00066   } 
00067 
00068 #endif /* FT_CONFIG_OPTION_PIC */ 
00069 
00070   /* */
00071 
00072 
00073 FT_END_HEADER
00074 
00075 
00076 #endif /* __SVPOSTNM_H__ */
00077 
00078 
00079 /* END */

Generated on Mon May 28 2012 04:33:32 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.