dwrite: Enable global directional substitution features.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-05-06 15:44:45 +03:00 committed by Alexandre Julliard
parent 7e02e2e993
commit 1f90b33daf
1 changed files with 11 additions and 0 deletions

View File

@ -301,6 +301,17 @@ HRESULT shape_get_glyphs(struct scriptshaping_context *context, const unsigned i
struct shaping_features features = { 0 };
unsigned int i;
if (!context->is_sideways)
{
if (context->is_rtl)
shape_add_feature(&features, DWRITE_MAKE_OPENTYPE_TAG('r','t','l','a'));
else
{
shape_add_feature(&features, DWRITE_MAKE_OPENTYPE_TAG('l','t','r','a'));
shape_add_feature(&features, DWRITE_MAKE_OPENTYPE_TAG('l','t','r','m'));
}
}
for (i = 0; i < ARRAY_SIZE(common_features); ++i)
shape_add_feature(&features, common_features[i]);