@ -55,6 +55,7 @@ struct shape_options_t
( remove_default_ignorables ? HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES : 0 ) |
0 ) ) ;
hb_buffer_set_invisible_glyph ( buffer , invisible_glyph ) ;
hb_buffer_set_not_found_glyph ( buffer , not_found_glyph ) ;
hb_buffer_set_cluster_level ( buffer , cluster_level ) ;
hb_buffer_guess_segment_properties ( buffer ) ;
}
@ -305,6 +306,7 @@ struct shape_options_t
char * * shapers = nullptr ;
hb_bool_t utf8_clusters = false ;
hb_codepoint_t invisible_glyph = 0 ;
hb_codepoint_t not_found_glyph = 0 ;
hb_buffer_cluster_level_t cluster_level = HB_BUFFER_CLUSTER_LEVEL_DEFAULT ;
hb_bool_t normalize_glyphs = false ;
hb_bool_t verify = false ;
@ -427,6 +429,7 @@ shape_options_t::add_options (option_parser_t *parser)
{ " preserve-default-ignorables " , 0 , 0 , G_OPTION_ARG_NONE , & this - > preserve_default_ignorables , " Preserve Default-Ignorable characters " , nullptr } ,
{ " remove-default-ignorables " , 0 , 0 , G_OPTION_ARG_NONE , & this - > remove_default_ignorables , " Remove Default-Ignorable characters " , nullptr } ,
{ " invisible-glyph " , 0 , 0 , G_OPTION_ARG_INT , & this - > invisible_glyph , " Glyph value to replace Default-Ignorables with " , nullptr } ,
{ " not-found-glyph " , 0 , 0 , G_OPTION_ARG_INT , & this - > not_found_glyph , " Glyph value to replace not-found characters with " , nullptr } ,
{ " utf8-clusters " , 0 , 0 , G_OPTION_ARG_NONE , & this - > utf8_clusters , " Use UTF8 byte indices, not char indices " , nullptr } ,
{ " cluster-level " , 0 , 0 , G_OPTION_ARG_INT , & this - > cluster_level , " Cluster merging level (default: 0) " , " 0/1/2 " } ,
{ " normalize-glyphs " , 0 , 0 , G_OPTION_ARG_NONE , & this - > normalize_glyphs , " Rearrange glyph clusters in nominal order " , nullptr } ,