diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc index c14e9d2be4b176d97614604e4d0a4a2e2d98507a..a079563af482a05f6a5af958ebbe0f550a85df4c 100644 --- a/src/hb-directwrite.cc +++ b/src/hb-directwrite.cc @@ -879,29 +879,12 @@ _hb_directwrite_shape (hb_shape_plan_t *shape_plan, features, num_features, 0); } -/** - * hb_directwrite_shape_experimental_width: - * Experimental API to test DirectWrite's justification algorithm. - * - * It inserts Kashida at wrong order so don't use the API ever. - * - * It doesn't work with cygwin/msys due to header bugs so one - * should use MSVC toolchain in order to use it for now. - * - * @font: - * @buffer: - * @features: - * @num_features: - * @width: - * - * Since: 1.4.2 - **/ -hb_bool_t -hb_directwrite_shape_experimental_width (hb_font_t *font, - hb_buffer_t *buffer, - const hb_feature_t *features, - unsigned int num_features, - float width) +HB_UNUSED static bool +_hb_directwrite_shape_experimental_width (hb_font_t *font, + hb_buffer_t *buffer, + const hb_feature_t *features, + unsigned int num_features, + float width) { static const char *shapers = "directwrite"; hb_shape_plan_t *shape_plan; diff --git a/src/hb-directwrite.h b/src/hb-directwrite.h index de813d069f22d55171757c9c58f4786ce81a6be9..f837627a286035c08252417ad99bc456993b2b92 100644 --- a/src/hb-directwrite.h +++ b/src/hb-directwrite.h @@ -29,11 +29,6 @@ HB_BEGIN_DECLS -HB_EXTERN hb_bool_t -hb_directwrite_shape_experimental_width (hb_font_t *font, hb_buffer_t *buffer, - const hb_feature_t *features, - unsigned int num_features, float width); - HB_EXTERN hb_face_t * hb_directwrite_face_create (IDWriteFontFace *font_face);