src/java.desktop/share/native/libfreetype/include/freetype/internal/services/svcid.h
changeset 54876 da3834261f0c
parent 49234 3375a8039fde
equal deleted inserted replaced
54875:bcfedddcf4ce 54876:da3834261f0c
     1 /***************************************************************************/
     1 /****************************************************************************
     2 /*                                                                         */
     2  *
     3 /*  svcid.h                                                                */
     3  * svcid.h
     4 /*                                                                         */
     4  *
     5 /*    The FreeType CID font services (specification).                      */
     5  *   The FreeType CID font services (specification).
     6 /*                                                                         */
     6  *
     7 /*  Copyright 2007-2018 by                                                 */
     7  * Copyright (C) 2007-2019 by
     8 /*  Derek Clegg and Michael Toftdal.                                       */
     8  * Derek Clegg and Michael Toftdal.
     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 SVCID_H_
    19 #ifndef SVCID_H_
    20 #define SVCID_H_
    20 #define SVCID_H_
    21 
    21 
    46     FT_CID_GetIsInternallyCIDKeyedFunc        get_is_cid;
    46     FT_CID_GetIsInternallyCIDKeyedFunc        get_is_cid;
    47     FT_CID_GetCIDFromGlyphIndexFunc           get_cid_from_glyph_index;
    47     FT_CID_GetCIDFromGlyphIndexFunc           get_cid_from_glyph_index;
    48   };
    48   };
    49 
    49 
    50 
    50 
    51 #ifndef FT_CONFIG_OPTION_PIC
       
    52 
       
    53 #define FT_DEFINE_SERVICE_CIDREC( class_,                                   \
    51 #define FT_DEFINE_SERVICE_CIDREC( class_,                                   \
    54                                   get_ros_,                                 \
    52                                   get_ros_,                                 \
    55                                   get_is_cid_,                              \
    53                                   get_is_cid_,                              \
    56                                   get_cid_from_glyph_index_ )               \
    54                                   get_cid_from_glyph_index_ )               \
    57   static const FT_Service_CIDRec class_ =                                   \
    55   static const FT_Service_CIDRec class_ =                                   \
    58   {                                                                         \
    56   {                                                                         \
    59     get_ros_, get_is_cid_, get_cid_from_glyph_index_                        \
    57     get_ros_, get_is_cid_, get_cid_from_glyph_index_                        \
    60   };
    58   };
    61 
       
    62 #else /* FT_CONFIG_OPTION_PIC */
       
    63 
       
    64 #define FT_DEFINE_SERVICE_CIDREC( class_,                                   \
       
    65                                   get_ros_,                                 \
       
    66                                   get_is_cid_,                              \
       
    67                                   get_cid_from_glyph_index_ )               \
       
    68   void                                                                      \
       
    69   FT_Init_Class_ ## class_( FT_Library          library,                    \
       
    70                             FT_Service_CIDRec*  clazz )                     \
       
    71   {                                                                         \
       
    72     FT_UNUSED( library );                                                   \
       
    73                                                                             \
       
    74     clazz->get_ros                  = get_ros_;                             \
       
    75     clazz->get_is_cid               = get_is_cid_;                          \
       
    76     clazz->get_cid_from_glyph_index = get_cid_from_glyph_index_;            \
       
    77   }
       
    78 
       
    79 #endif /* FT_CONFIG_OPTION_PIC */
       
    80 
    59 
    81   /* */
    60   /* */
    82 
    61 
    83 
    62 
    84 FT_END_HEADER
    63 FT_END_HEADER