src/java.desktop/share/native/libfreetype/include/freetype/internal/services/svsfnt.h
changeset 54876 da3834261f0c
parent 49234 3375a8039fde
equal deleted inserted replaced
54875:bcfedddcf4ce 54876:da3834261f0c
     1 /***************************************************************************/
     1 /****************************************************************************
     2 /*                                                                         */
     2  *
     3 /*  svsfnt.h                                                               */
     3  * svsfnt.h
     4 /*                                                                         */
     4  *
     5 /*    The FreeType SFNT table loading service (specification).             */
     5  *   The FreeType SFNT table loading service (specification).
     6 /*                                                                         */
     6  *
     7 /*  Copyright 2003-2018 by                                                 */
     7  * Copyright (C) 2003-2019 by
     8 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
     8  * David Turner, Robert Wilhelm, and Werner Lemberg.
     9 /*                                                                         */
     9  *
    10 /*  This file is part of the FreeType project, and may only be used,       */
    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      */
    11  * modified, and distributed under the terms of the FreeType project
    12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    12  * license, LICENSE.TXT.  By continuing to use, modify, or distribute
    13 /*  this file you indicate that you have read the license and              */
    13  * this file you indicate that you have read the license and
    14 /*  understand and accept it fully.                                        */
    14  * understand and accept it fully.
    15 /*                                                                         */
    15  *
    16 /***************************************************************************/
    16  */
    17 
    17 
    18 
    18 
    19 #ifndef SVSFNT_H_
    19 #ifndef SVSFNT_H_
    20 #define SVSFNT_H_
    20 #define SVSFNT_H_
    21 
    21 
    25 
    25 
    26 FT_BEGIN_HEADER
    26 FT_BEGIN_HEADER
    27 
    27 
    28 
    28 
    29   /*
    29   /*
    30    *  SFNT table loading service.
    30    * SFNT table loading service.
    31    */
    31    */
    32 
    32 
    33 #define FT_SERVICE_ID_SFNT_TABLE  "sfnt-table"
    33 #define FT_SERVICE_ID_SFNT_TABLE  "sfnt-table"
    34 
    34 
    35 
    35 
    68     FT_SFNT_TableGetFunc   get_table;
    68     FT_SFNT_TableGetFunc   get_table;
    69     FT_SFNT_TableInfoFunc  table_info;
    69     FT_SFNT_TableInfoFunc  table_info;
    70   };
    70   };
    71 
    71 
    72 
    72 
    73 #ifndef FT_CONFIG_OPTION_PIC
       
    74 
       
    75 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ )  \
    73 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ )  \
    76   static const FT_Service_SFNT_TableRec  class_ =                      \
    74   static const FT_Service_SFNT_TableRec  class_ =                      \
    77   {                                                                    \
    75   {                                                                    \
    78     load_, get_, info_                                                 \
    76     load_, get_, info_                                                 \
    79   };
    77   };
    80 
       
    81 #else /* FT_CONFIG_OPTION_PIC */
       
    82 
       
    83 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \
       
    84   void                                                                \
       
    85   FT_Init_Class_ ## class_( FT_Service_SFNT_TableRec*  clazz )        \
       
    86   {                                                                   \
       
    87     clazz->load_table = load_;                                        \
       
    88     clazz->get_table  = get_;                                         \
       
    89     clazz->table_info = info_;                                        \
       
    90   }
       
    91 
       
    92 #endif /* FT_CONFIG_OPTION_PIC */
       
    93 
    78 
    94   /* */
    79   /* */
    95 
    80 
    96 
    81 
    97 FT_END_HEADER
    82 FT_END_HEADER