|
|
|
@ -63,6 +63,10 @@ FT_BEGIN_HEADER |
|
|
|
|
FT_UInt num_coords, |
|
|
|
|
FT_Fixed* coords ); |
|
|
|
|
|
|
|
|
|
typedef FT_Error |
|
|
|
|
(*FT_Set_Instance_Func)( FT_Face face, |
|
|
|
|
FT_UInt instance_index ); |
|
|
|
|
|
|
|
|
|
typedef FT_Error |
|
|
|
|
(*FT_Get_MM_Blend_Func)( FT_Face face, |
|
|
|
|
FT_UInt num_coords, |
|
|
|
@ -88,6 +92,7 @@ FT_BEGIN_HEADER |
|
|
|
|
FT_Get_MM_Var_Func get_mm_var; |
|
|
|
|
FT_Set_Var_Design_Func set_var_design; |
|
|
|
|
FT_Get_Var_Design_Func get_var_design; |
|
|
|
|
FT_Set_Instance_Func set_instance; |
|
|
|
|
|
|
|
|
|
/* for internal use; only needed for code sharing between modules */ |
|
|
|
|
FT_Get_Var_Blend_Func get_var_blend; |
|
|
|
@ -97,27 +102,29 @@ FT_BEGIN_HEADER |
|
|
|
|
|
|
|
|
|
#ifndef FT_CONFIG_OPTION_PIC |
|
|
|
|
|
|
|
|
|
#define FT_DEFINE_SERVICE_MULTIMASTERSREC( class_, \ |
|
|
|
|
get_mm_, \
|
|
|
|
|
set_mm_design_, \
|
|
|
|
|
set_mm_blend_, \
|
|
|
|
|
get_mm_blend_, \
|
|
|
|
|
get_mm_var_, \
|
|
|
|
|
set_var_design_, \
|
|
|
|
|
get_var_design_, \
|
|
|
|
|
get_var_blend_, \
|
|
|
|
|
done_blend_ ) \
|
|
|
|
|
static const FT_Service_MultiMastersRec class_ = \
|
|
|
|
|
{ \
|
|
|
|
|
get_mm_, \
|
|
|
|
|
set_mm_design_, \
|
|
|
|
|
set_mm_blend_, \
|
|
|
|
|
get_mm_blend_, \
|
|
|
|
|
get_mm_var_, \
|
|
|
|
|
set_var_design_, \
|
|
|
|
|
get_var_design_, \
|
|
|
|
|
get_var_blend_, \
|
|
|
|
|
done_blend_ \
|
|
|
|
|
#define FT_DEFINE_SERVICE_MULTIMASTERSREC( class_, \ |
|
|
|
|
get_mm_, \
|
|
|
|
|
set_mm_design_, \
|
|
|
|
|
set_mm_blend_, \
|
|
|
|
|
get_mm_blend_, \
|
|
|
|
|
get_mm_var_, \
|
|
|
|
|
set_var_design_, \
|
|
|
|
|
get_var_design_, \
|
|
|
|
|
set_instance_, \
|
|
|
|
|
get_var_blend_, \
|
|
|
|
|
done_blend_ ) \
|
|
|
|
|
static const FT_Service_MultiMastersRec class_ = \
|
|
|
|
|
{ \
|
|
|
|
|
get_mm_, \
|
|
|
|
|
set_mm_design_, \
|
|
|
|
|
set_mm_blend_, \
|
|
|
|
|
get_mm_blend_, \
|
|
|
|
|
get_mm_var_, \
|
|
|
|
|
set_var_design_, \
|
|
|
|
|
get_var_design_, \
|
|
|
|
|
set_instance_, \
|
|
|
|
|
get_var_blend_, \
|
|
|
|
|
done_blend_ \
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#else /* FT_CONFIG_OPTION_PIC */ |
|
|
|
@ -130,6 +137,7 @@ FT_BEGIN_HEADER |
|
|
|
|
get_mm_var_, \
|
|
|
|
|
set_var_design_, \
|
|
|
|
|
get_var_design_, \
|
|
|
|
|
set_instance_, \
|
|
|
|
|
get_var_blend_, \
|
|
|
|
|
done_blend_ ) \
|
|
|
|
|
void \
|
|
|
|
@ -142,6 +150,7 @@ FT_BEGIN_HEADER |
|
|
|
|
clazz->get_mm_var = get_mm_var_; \
|
|
|
|
|
clazz->set_var_design = set_var_design_; \
|
|
|
|
|
clazz->get_var_design = get_var_design_; \
|
|
|
|
|
clazz->set_instance = set_instance_; \
|
|
|
|
|
clazz->get_var_blend = get_var_blend_; \
|
|
|
|
|
clazz->done_blend = done_blend_; \
|
|
|
|
|
} |
|
|
|
|